Skip to content

Commit f7aecad

Browse files
committed
Add .travis.yml and test target
1 parent 65bdf72 commit f7aecad

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Diff for: .travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: nix
2+
3+
before_install:
4+
- nix-channel --list
5+
- nix-channel --update
6+
7+
script:
8+
- curl -O http://arrayfire.s3.amazonaws.com/3.6.4/ArrayFire-v3.6.4_Linux_x86_64.sh
9+
- chmod +x ArrayFire-v3.6.4_Linux_x86_64.sh
10+
- ./Arrayfire_*_Linux_x86_64.sh --include-subdir --prefix=/opt
11+
- ls -lah /opt/arrayfire/
12+
- nix-shell --run test

Diff for: shell.nix

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ in
1616
'cabal v1-configure --enable-tests && \
1717
cabal v1-build test && dist/build/test/test'
1818
}
19+
function test () {
20+
cabal v1-configure --enable-tests && \
21+
cabal v1-build test && dist/build/test/test
22+
}
1923
function doctest-runner () {
2024
${pkgs.ag}/bin/ag -l | \
2125
${pkgs.entr}/bin/entr sh -c \

0 commit comments

Comments
 (0)