mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-03-13 04:48:17 +01:00
Added cargo caching to travis.
This commit is contained in:
parent
f39e9d6c6c
commit
04958298f7
@ -2,15 +2,18 @@ language: rust
|
||||
jobs:
|
||||
include:
|
||||
- stage: compile
|
||||
cache: cargo
|
||||
before_install:
|
||||
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
|
||||
script:
|
||||
- cargo build --verbose --all
|
||||
|
||||
- stage: test
|
||||
cache: cargo
|
||||
script: cargo test --verbose --all
|
||||
|
||||
- stage: deploy-releases
|
||||
cache: cargo
|
||||
if: branch = release
|
||||
script: cargo build --verbose --manifest-path kalk_cli/Cargo.toml --release
|
||||
deploy:
|
||||
@ -25,6 +28,7 @@ jobs:
|
||||
branch: release
|
||||
|
||||
- stage: deploy-cargo
|
||||
cache: cargo
|
||||
if: branch = release
|
||||
deploy:
|
||||
provider: cargo
|
||||
|
Loading…
Reference in New Issue
Block a user