Skip to content

Commit

Permalink
CI: cache rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Jan 31, 2017
1 parent cbc6c72 commit 2fcc94d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
before_script:
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION -y
- export PATH=$HOME/.cargo/bin:$PATH
- cargo install rustfmt
- rustfmt --help || cargo install rustfmt --force

install: true

Expand All @@ -29,3 +29,5 @@ cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.cargo/registry/
- $HOME/.cargo/bin/
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ install:
- curl -sSf -o rustup-init.exe https://dev-static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe
- rustup-init.exe -y
- set PATH=C:\Users\appveyor\.cargo\bin;%PATH%
- cargo install rustfmt
- rustfmt --help || cargo install rustfmt --force

build_script:
- gradlew.bat assemble testClasses --no-daemon
Expand All @@ -15,6 +15,7 @@ test_script:

cache:
- C:\Users\appveyor\.cargo\registry
- C:\Users\appveyor\.cargo\bin

# Appveyor does not allow huge cache folders
# https://www.appveyor.com/docs/build-cache/
Expand Down

0 comments on commit 2fcc94d

Please sign in to comment.