Added cargo caching to travis.

This commit is contained in:
PaddiM8 2020-06-12 16:30:28 +02:00
parent f2a1ddcc05
commit d1c55bd0db

View File

@ -2,15 +2,18 @@ language: rust
jobs: jobs:
include: include:
- stage: compile - stage: compile
cache: cargo
before_install: before_install:
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu - rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
script: script:
- cargo build --verbose --all - cargo build --verbose --all
- stage: test - stage: test
cache: cargo
script: cargo test --verbose --all script: cargo test --verbose --all
- stage: deploy-releases - stage: deploy-releases
cache: cargo
if: branch = release if: branch = release
script: cargo build --verbose --manifest-path kalk_cli/Cargo.toml --release script: cargo build --verbose --manifest-path kalk_cli/Cargo.toml --release
deploy: deploy:
@ -25,6 +28,7 @@ jobs:
branch: release branch: release
- stage: deploy-cargo - stage: deploy-cargo
cache: cargo
if: branch = release if: branch = release
deploy: deploy:
provider: cargo provider: cargo