-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,21 @@ | ||
# Copied from https://github.com/nim-lang/Nim/wiki/TravisCI | ||
os: | ||
- linux | ||
dist: trusty | ||
|
||
language: c | ||
env: | ||
# Build and test against the master and devel branches of Nim | ||
- BRANCH=master | ||
- BRANCH=devel | ||
compiler: | ||
# Build and test using both gcc and clang | ||
- gcc | ||
- clang | ||
matrix: | ||
allow_failures: | ||
# Ignore failures when building against the devel Nim branch | ||
- env: BRANCH=devel | ||
fast_finish: true | ||
|
||
install: | ||
- | | ||
if [ ! -x nim-$BRANCH/bin/nim ]; then | ||
git clone -b $BRANCH --depth 1 git://github.com/nim-lang/nim nim-$BRANCH/ | ||
cd nim-$BRANCH | ||
git clone --depth 1 git://github.com/nim-lang/csources csources/ | ||
cd csources | ||
wget https://nim-lang.org/download/nim-0.17.0.tar.xz | ||
tar -xf nim-0.17.0.tar.xz | ||
cd nim-0.17.0 | ||
sh build.sh | ||
cd .. | ||
rm -rf csources | ||
bin/nim c koch | ||
./koch boot -d:release | ||
./koch nimble | ||
else | ||
cd nim-$BRANCH | ||
git fetch origin | ||
if ! git merge FETCH_HEAD | grep "Already up-to-date"; then | ||
bin/nim c koch | ||
./koch boot -d:release | ||
./koch nimble | ||
fi | ||
fi | ||
cd .. | ||
./koch tools | ||
before_script: | ||
- export PATH="nim-$BRANCH/bin${PATH:+:$PATH}" | ||
- export PATH=`pwd`/nim-0.17.0/bin:$PATH | ||
|
||
script: | ||
- nimble build -y | ||
- nimble test | ||
- nimble test | ||
|
||
cache: | ||
directories: | ||
- nim-master | ||
- nim-devel | ||
branches: | ||
except: | ||
- gh-pages | ||
addons: | ||
- rethinkdb: "2.3" |