travis: add cache and fix issues

This commit is contained in:
liushuyu 2019-06-26 23:31:32 -06:00 committed by James
parent b3b686ed53
commit 9a28807423

View file

@ -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