Skip to content

Commit 25e965f

Browse files
committed
Add CircleCI build
1 parent 56ca37c commit 25e965f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

circle.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
dependencies:
2+
pre:
3+
- |
4+
if [ ! -x ~/nim/bin/nim ]; then
5+
sudo apt-get install gcc
6+
git clone -b devel --depth 1 git://github.com/araq/nim ~/nim/
7+
git clone -b devel --depth 1 git://github.com/nim-lang/csources ~/nim/csources/
8+
cd ~/nim/csources; sh build.sh; cd ..
9+
rm -rf csources
10+
bin/nim c koch
11+
./koch boot -d:release
12+
ln -fs ~/nim/bin/nim ~/bin/nim
13+
else
14+
cd ~/nim
15+
git fetch origin
16+
if ! git merge FETCH_HEAD | grep "Already up-to-date"; then
17+
bin/nim c koch
18+
./koch boot -d:release
19+
fi
20+
fi
21+
22+
cache_directories:
23+
- "~/bin/"
24+
- "~/nim/"
25+
26+
test:
27+
override:
28+
- cd test
29+
- nim c -r test

0 commit comments

Comments
 (0)