Skip to content

Commit f19e903

Browse files
committed
use os specific prefix
unable to replace files in /usr on osx
1 parent aa01ea8 commit f19e903

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: .travis.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: c
22

33
os:
4-
- linux
4+
# - linux
55
- osx
66

77
before_install:
@@ -15,14 +15,17 @@ before_install:
1515
script:
1616
# abort on any command failure
1717
- set -e
18+
# travis debug
19+
- which file || echo no
1820

1921
# build and install file
2022
- git clone --depth=100 git://github.com/file/file.git
2123
- cd file
2224
- test -z "$commit" || git checkout $commit
2325
- git log -1
2426
- autoreconf -f -i
25-
- ./configure --prefix=/usr
27+
- case "$TRAVIS_OS_NAME" in osx) prefix=/usr/local;; linux) prefix=/usr;; esac
28+
- ./configure --prefix=$prefix
2629
- make -j4
2730
# remove system file package first
2831
# see https://github.com/file/file-tests/issues/3

0 commit comments

Comments
 (0)