diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-03-26 17:52:31 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-03-26 17:52:31 +0100 |
commit | a37efdbcf33aa8e0b4270b6c299725d3ae1addec (patch) | |
tree | 6534868ca77280bfd7a90c9cdc5fc00d4f5849a7 | |
parent | 569929c8f0304d29f3d5a7ce640124a12215a69b (diff) | |
parent | 0caa912939cd24b09bd06a29db3f2ead95516780 (diff) |
Merge branch 'ci'
-rw-r--r-- | .builds/debian.yml | 13 | ||||
-rw-r--r-- | .travis.yml | 37 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.builds/debian.yml b/.builds/debian.yml new file mode 100644 index 0000000..5d57dd8 --- /dev/null +++ b/.builds/debian.yml @@ -0,0 +1,13 @@ +image: debian/stable +packages: + - curl + - openssl + - libssl-dev + - pkg-config +sources: + - https://git.sr.ht/~matthiasbeyer/distrox +tasks: + - install: curl https://sh.rustup.rs -sSf | sh -s -- -y + - check: | + cd distrox + PATH="$HOME/.cargo/bin:$PATH" cargo check --all --all-features diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2f508b8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,37 @@ +sudo: false +os: + - linux + +dist: + - bionic + +language: rust + +matrix: + include: + - language: rust + rust: stable + cache: + directories: + - /home/travis/.cargo + before_cache: + - rm -rf /home/travis/.cargo/registry + script: + - cargo build --all --all-features -j 1 || exit 1 + - cargo test --all --all-features -j 1 || exit 1 + - language: rust + rust: beta + cache: + directories: + - /home/travis/.cargo + before_cache: + - rm -rf /home/travis/.cargo/registry + script: + - cargo build --all --all-features -j 1 || exit 1 + - cargo test --all --all-features -j 1 || exit 1 + +notifications: + email: + on_success: always + on_failure: always + |