-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add CI with Travis and AppVeyor (#2)
* ci: Add a Travis configuration * ci: Add an appveyor config * ci: Force up-to-date Cargo.lock in CI * ci: Do not build or test verbosely * ci: Improve build cache in AppVeyor
- Loading branch information
Showing
3 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
language: rust | ||
cache: cargo | ||
|
||
git: | ||
depth: 1 | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
if: tag IS blank | ||
install: cargo build --all --locked | ||
script: cargo test --all | ||
|
||
notifications: | ||
webhooks: | ||
urls: | ||
- https://zeus.ci/hooks/a3901574-fbb7-11e7-9451-0a580a280114/public/provider/travis/webhook | ||
on_success: always | ||
on_failure: always | ||
on_start: always | ||
on_cancel: always | ||
on_error: always |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
skip_tags: true | ||
|
||
cache: | ||
- 'target' | ||
- '%USERPROFILE%\.cargo' | ||
|
||
environment: | ||
matrix: | ||
- channel: stable | ||
target: i686-pc-windows-msvc | ||
- channel: stable | ||
target: x86_64-pc-windows-msvc | ||
|
||
install: | ||
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe | ||
- rustup-init -yv --default-toolchain %channel% --default-host %target% | ||
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin | ||
- rustc -vV | ||
- cargo -vV | ||
|
||
build_script: | ||
- cargo build --all --locked | ||
|
||
test_script: | ||
- cargo test --all |