From 9a28807423569b4ac9f262e47f3d475f8b668a0e Mon Sep 17 00:00:00 2001 From: liushuyu Date: Wed, 26 Jun 2019 23:31:32 -0600 Subject: [PATCH] travis: add cache and fix issues --- .travis.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3b0c45c..f173ee1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,13 +6,22 @@ matrix: dist: trusty services: docker install: docker pull rust:1 - script: docker run -v $(pwd):/liftinstall rust:1 /bin/bash -ex /liftinstall/.travis/build.sh + cache: + directories: + - $HOME/.cargo + - $TRAVIS_BUILD_DIR/ui/node_modules + script: docker run -v $HOME/.cargo:/root/.cargo -v $(pwd):/liftinstall rust:1 /bin/bash -ex /liftinstall/.travis/build.sh - os: osx language: rust + cache: cargo osx_image: xcode10 script: brew install yarn && cargo build - os: windows language: rust - script: choco install nodejs yarn && cargo build + cache: cargo + script: + - choco install nodejs yarn + - export PATH="$PROGRAMFILES/nodejs/:$PROGRAMFILES (x86)/Yarn/bin/:$PATH" + - cargo build