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