summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-12-05 19:53:57 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-13 19:20:03 +0100
commite5a111bcb7559a96ee004c0c6b36f14b70f6ea5e (patch)
treef0506111a256fd592285e4e2c41a9f9a23a2f65e
parentf997e10282344552085d56ddff5ac01d17bf5f84 (diff)
Add travis configuration file
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--.travis.yml17
-rw-r--r--shell.nix27
2 files changed, 44 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..20cc0c6
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,17 @@
+matrix:
+ include:
+ - language: nix
+ script:
+ - nix-shell --pure --run "cargo build --all --all-features"
+ - nix-shell --pure --run "cargo test --all --all-features"
+
+jobs:
+ allow_failures:
+ - rust: nightly
+ fast_finish: true
+
+notifications:
+ email:
+ on_success: always
+ on_failure: always
+
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..94e8fe9
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,27 @@
+{ pkgs ? (import <nixpkgs> {}) }:
+
+pkgs.mkShell rec {
+ name = "libical";
+
+ buildInputs = with pkgs; [
+ rustc
+ cargo
+ cmake
+ curl
+ gcc
+ libpsl
+ openssl
+ pkgconfig
+ which
+ zlib
+ dbus
+ libtool
+ libical
+ llvmPackages.libclang
+ clang
+ ];
+
+ LIBCLANG_PATH="${pkgs.llvmPackages.libclang}/lib";
+}
+
+