Skip to content

Commit

Permalink
Add circle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Feb 7, 2015
1 parent f9bfc08 commit c1d06eb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
dependencies:
pre:
- |
if [ ! -x ~/nim/bin/nim ];
then
sudo apt-get install gcc
git clone -b devel --depth 1 git://github.com/araq/nim ~/nim/
git clone -b devel --depth 1 git://github.com/nim-lang/csources ~/nim/csources/
cd ~/nim/csources
sh build.sh
if [ ! -a ~/bin/nim ]; then
ln -s ~/nim/bin/nim ~/bin/nim
fi
cd ..
bin/nim c koch
./koch boot -d:release
else
cd ~/nim/
git fetch origin
if ! git merge FETCH_HEAD | grep "Already up-to-date"; then
bin/nim c koch
./koch boot -d:release
fi
fi
cache_directories:
- "~/bin/"
- "~/nim/"

## Customize test commands
test:
override:
- nim c -r tests/all

0 comments on commit c1d06eb

Please sign in to comment.