diff options
-rw-r--r-- | .travis.yml | 17 | ||||
-rw-r--r-- | shell.nix | 27 |
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"; +} + + |