-
Notifications
You must be signed in to change notification settings - Fork 11
/
circle.yml
36 lines (34 loc) · 1.15 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
dependencies:
pre:
- |
if [ ! -x ~/nim/bin/nim ]; then
git clone -b devel --depth 1 git://github.com/nim-lang/nim ~/nim/
git clone --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 --depsOnly --accept
nimble tests