Skip to content

Commit

Permalink
ci: Add CI with Travis and AppVeyor (#2)
Browse files Browse the repository at this point in the history
* 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
jan-auer authored Jan 18, 2018
1 parent 025f16b commit f48325c
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
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
80 changes: 80 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions appveyor.yml
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

0 comments on commit f48325c

Please sign in to comment.