File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change 1
1
language : c
2
- before_install :
3
- - |
4
- if [ "$TRAVIS_BRANCH" = master ]; then
5
- export branch=master
6
- else
7
- export branch =devel
8
- fi
2
+ env :
3
+ - nim_branch=master
4
+ - nim_branch=devel
5
+ matrix :
6
+ allow_failures :
7
+ - env : nim_branch =devel
8
+ fast_finish : true
9
9
install :
10
10
- |
11
- if [ ! -x nim-$branch /bin/nim ]; then
12
- git clone -b $branch --depth 1 git://github.com/nim-lang/nim nim-$branch /
13
- cd nim-$branch
14
- git clone -b $branch - -depth 1 git://github.com/nim-lang/csources csources/
11
+ if [ ! -x nim-$nim_branch /bin/nim ]; then
12
+ git clone -b $nim_branch --depth 1 git://github.com/nim-lang/nim nim-$nim_branch /
13
+ cd nim-$nim_branch
14
+ git clone --depth 1 git://github.com/nim-lang/csources csources/
15
15
cd csources
16
16
sh build.sh
17
17
cd ..
18
18
rm -rf csources
19
19
bin/nim c koch
20
20
./koch boot -d:release
21
- cd ..
22
21
else
23
- cd nim-$branch
22
+ cd nim-$nim_branch
24
23
git fetch origin
25
24
if ! git merge FETCH_HEAD | grep "Already up-to-date"; then
26
25
bin/nim c koch
27
26
./koch boot -d:release
28
27
fi
29
- cd ..
30
28
fi
29
+ cd ..
31
30
before_script :
32
- - export PATH=nim-$branch /bin: $PATH
31
+ - export PATH=" nim-$nim_branch /bin${PATH:+: $PATH}"
33
32
script :
34
33
- nim compile --verbosity:0 --run test/test
35
34
cache :
36
35
directories :
37
36
- nim-master
38
37
- nim-devel
39
- sudo : required
40
38
dist : trusty
You can’t perform that action at this time.
0 commit comments