all repos — min @ 94b7a4520dbb42d36a77e41414b1e93ee7d93dab

A small but practical concatenative programming language.

Integrated Travis CI
h3rald h3rald@h3rald.com
Sun, 09 Jul 2017 11:46:44 +0200
commit

94b7a4520dbb42d36a77e41414b1e93ee7d93dab

parent

5e09dd237d10d60108b7bbc1599d74a30d7af2bf

1 files changed, 59 insertions(+), 0 deletions(-)

jump to
A .travis.yml

@@ -0,0 +1,59 @@

+# Copied from https://github.com/nim-lang/Nim/wiki/TravisCI +language: c +env: + # Build and test against the master and devel branches of Nim + - BRANCH=master + - BRANCH=devel +compiler: + #- 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 -b $BRANCH --depth 1 git://github.com/nim-lang/csources csources/ + cd csources + sh build.sh + cd .. + rm -rf csources + bin/nim c koch + ./koch boot -d:release + 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 + fi + fi + cd .. + if [ ! -x nifty/nifty ]; then + git clone --depth 1 git://github.com/h3rald/nifty nifty/ + cd nifty + ../nim-$BRANCH/bin/nim c --cc:$CC --verbosity:0 -d:release nifty.nim + else + cd nifty + git fetch origin + if ! git merge FETCH_HEAD | grep "Already up-to-date"; then + ../nim-$BRANCH/bin/nim c --cc:$CC --verbosity:0 -d:release nifty.nim + fi + fi + cd .. +before_script: + - export PATH="$PATH:$PWD/nifty:$PWD/nim-$BRANCH/bin" +script: + - nifty install + - nifty build discount + - nim c --cc:$CC --verbosity:0 -d:release min.nim + - ./min tests/all.min +cache: + directories: + - nim-master + - nim-devel + - nifty