Skip to content

Commit

Permalink
Add .travis.yml and test target
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjio committed Nov 5, 2019
1 parent 65bdf72 commit f7aecad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit f7aecad

Please sign in to comment.