Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (25 sloc) 813 Bytes
dependencies:
override:
- |
if [ ! -x ~/nim/bin/nim ]; then
git clone -b devel --depth 1 https://github.com/nim-lang/Nim ~/nim/
git clone --depth 1 https://github.com/nim-lang/csources ~/nim/csources/
cd ~/nim/csources; sh build.sh; cd ..; rm -rf csources
ln -fs ~/nim/bin/nim ~/bin/nim
bin/nim c koch; ./koch boot -d:release; ./koch nimble
ln -fs ~/nim/bin/nimble ~/bin/nimble
else
cd ~/nim; git fetch origin
git merge FETCH_HEAD | grep "Already up-to-date" || (bin/nim c koch; ./koch boot -d:release; ./koch nimble)
fi
cache_directories:
- "~/bin/"
- "~/nim/"
- "~/.nimble/"
compile:
override:
- nimble build -y
## Customize test commands
test:
override:
- nimble test -y