-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
43 lines (43 loc) · 966 Bytes
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
language: c
env:
- nim_branch=master
- nim_branch=devel
compiler:
- gcc
- clang
matrix:
allow_failures:
- env: nim_branch=devel
fast_finish: true
install:
- |
if [ ! -x nim-$nim_branch/bin/nim ]; then
git clone -b $nim_branch --depth 1 git://github.com/nim-lang/nim nim-$nim_branch/
cd nim-$nim_branch
git clone -b $nim_branch --depth 1 git://github.com/nim-lang/csources csources/
cd csources
sh build.sh
cd ..
rm -rf csources
bin/nim c koch
./koch boot -d:release
else
cd nim-$nim_branch
git fetch origin
if ! git merge FETCH_HEAD | grep "Already up-to-date"; then
bin/nim c koch
./koch boot -d:release
fi
fi
cd ..
before_script:
- export PATH="nim-$nim_branch/bin${PATH:+:$PATH}"
script:
- nim compile --cc:$CC --verbosity:0 --run test/test
cache:
directories:
- nim-master
- nim-devel
branches:
except:
- gh-pages