mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-06-23 19:21:26 +02:00
Added cargo caching to travis.
This commit is contained in:
parent
f2a1ddcc05
commit
d1c55bd0db
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user