forked from ehmry/nim-fuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 1.36 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
os:
- linux
- osx
language: c
env:
- BRANCH="master"
- BRANCH="devel"
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -qq libfuse-dev pkg-config fuse user-mode-linux; sudo mknod /dev/fuse c 10 229; sudo chmod 666 /dev/fuse; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install osxfuse; sudo /bin/cp -RfX /usr/local/opt/osxfuse/Library/Filesystems/osxfusefs.fs /Library/Filesystems; sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs; sudo mknod /dev/fuse c 10 229; sudo chmod 666 /dev/fuse; fi
- git clone -b $BRANCH git://github.com/Araq/Nim.git; cd Nim; git clone -b $BRANCH --depth 1 git://github.com/nim-lang/csources; cd csources && sh build.sh; cd ..; bin/nim c koch; ./koch boot -d:release; cd ..
before_script:
# - ls -l /dev/fuse
# - ruby -v
- set -e
- set -x
- export PATH=`pwd`/Nim/bin:$PATH
script:
- cd test
- nim c -p:.. hello
# - nim c -p:.. hello_hi
# - nim c -p:.. memfs
# - if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./test_linux.sh test_hello_ez.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./test_linux.sh test_hello.rb; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then sudo ./test_osx.sh test_hello.rb; fi
notifications:
email: false # noisy