Skip to content

Commit

Permalink
update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Jun 28, 2017
1 parent 86e0da3 commit aa437cb
Showing 1 changed file with 12 additions and 44 deletions.
56 changes: 12 additions & 44 deletions .travis.yml
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"

0 comments on commit aa437cb

Please sign in to comment.