summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.builds/debian.yml13
-rw-r--r--.travis.yml37
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
+