Skip to content

Commit

Permalink
Make circle ci work with nimble
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Jun 8, 2016
1 parent afbc0b7 commit 5debc38
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,29 @@ dependencies:
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; cd ..; rm -rf csources
bin/nim c koch; ./koch boot -d:release
ln -fs ~/nim/bin/nim ~/bin/nim
bin/nim c koch; ./koch boot -d:release
else
cd ~/nim; git fetch origin
git merge FETCH_HEAD | grep "Already up-to-date" || (bin/nim c koch; ./koch boot -d:release)
fi
if [ ! -x ~/nimble ]; then
git clone --depth 1 https://github.com/nim-lang/nimble ~/nimble/
cd ~/nimble
nim -d:release c -r src/nimble -y install
ln -fs ~/.nimble/bin/nimble ~/bin/nimble
else
cd ~/nimble; git fetch origin
git merge FETCH_HEAD | grep "Already up-to-date" || (nim -d:release c -r src/nimble -y install)
fi
cache_directories:
- "~/bin/"
- "~/nim/"
- "~/nimble/"
- "~/.nimble/"

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

0 comments on commit 5debc38

Please sign in to comment.