Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (34 sloc) 1.13 KB
dependencies:
pre:
- |
if [ ! -x ~/nim/bin/nim ]; then
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
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
nimble update
cache_directories:
- "~/bin/"
- "~/nim/"
- "~/nimble/"
- "~/.nimble/"
## Customize test commands
test:
override:
- |
nimble install
nimble tests