From e5a111bcb7559a96ee004c0c6b36f14b70f6ea5e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 5 Dec 2019 19:53:57 +0100 Subject: Add travis configuration file Signed-off-by: Matthias Beyer --- .travis.yml | 17 +++++++++++++++++ shell.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .travis.yml create mode 100644 shell.nix 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 {}) }: + +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"; +} + + -- cgit v1.2.3