-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
50 lines (50 loc) · 1.15 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
sudo: required
language: c
compiler:
- gcc
env:
# Build and test against the master and devel branches of Nim
- BRANCH=master
- BRANCH=devel
matrix:
allow_failures:
# Ignore failures when building against the master Nim branch since it
# is not supported yet
- env: BRANCH=devel
fast_finish: true
install:
- sudo apt-get update
- sudo apt-get install -f wine-dev binutils-dev gcc-multilib
- |
if [ ! -x nim-$BRANCH/bin/nim ]; then
git clone -b $BRANCH --depth 1 git://github.com/nim-lang/nim nim-$BRANCH/
cd nim-$BRANCH
git clone --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-$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 ..
- export PATH="$PWD/nim-$BRANCH/bin${PATH:+:$PATH}"
script:
- nim -v
- make tools
- touch signatures.txt
- make precompile
cache:
directories:
- nim-master
- nim-devel
branches:
except:
- gh-pages