diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..88e7801 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: nix + +before_install: + - nix-channel --list + - nix-channel --update + +script: + - curl -O http://arrayfire.s3.amazonaws.com/3.6.4/ArrayFire-v3.6.4_Linux_x86_64.sh + - chmod +x ArrayFire-v3.6.4_Linux_x86_64.sh + - ./Arrayfire_*_Linux_x86_64.sh --include-subdir --prefix=/opt + - ls -lah /opt/arrayfire/ + - nix-shell --run test diff --git a/shell.nix b/shell.nix index 8abcfde..3eb7b4c 100644 --- a/shell.nix +++ b/shell.nix @@ -16,6 +16,10 @@ in 'cabal v1-configure --enable-tests && \ cabal v1-build test && dist/build/test/test' } + function test () { + cabal v1-configure --enable-tests && \ + cabal v1-build test && dist/build/test/test + } function doctest-runner () { ${pkgs.ag}/bin/ag -l | \ ${pkgs.entr}/bin/entr sh -c \