Skip to content

Commit 31c0493

Browse files
committed
Disable default paths on travis.
1 parent bb4c4df commit 31c0493

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ script:
99
- chmod +x ArrayFire-v3.6.4_Linux_x86_64.sh
1010
- ./ArrayFire-v3.6.4_Linux_x86_64.sh --include-subdir --prefix=/opt
1111
- ls -lah /opt/arrayfire/
12-
- nix-shell --run test
12+
- nix-shell --run travis

shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ in
2020
cabal v1-configure --enable-tests && \
2121
cabal v1-build test && dist/build/test/test
2222
}
23+
function travis () {
24+
cabal v1-configure --enable-tests \
25+
-f+disable-default-paths \
26+
--extra-lib-dirs=/opt/arrayfire/lib64 \
27+
--extra-include-dirs=/opt/arrayfire/include && \
28+
cabal v1-build test && dist/build/test/test
29+
}
2330
function doctest-runner () {
2431
${pkgs.ag}/bin/ag -l | \
2532
${pkgs.entr}/bin/entr sh -c \

0 commit comments

Comments
 (0)