all repos — hastyscribe @ b22e10e136d9214f995be9138e359e4a8729b8ac

A professional markdown compiler.

Added .travis.yml.
h3rald h3rald@h3rald.com
Sat, 11 Jun 2016 14:44:08 +0200
commit

b22e10e136d9214f995be9138e359e4a8729b8ac

parent

b2c01c98fa217ac8fd16b58ca916e91810504487

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

jump to
A .travis.yml

@@ -0,0 +1,45 @@

+# 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 .. +before_script: + - export PATH="nim-$BRANCH/bin${PATH:+:$PATH}" +script: + - nim c --cc:$CC --verbosity:0 hastyscribe.nim + # Optional: build docs. + #- nim doc --docSeeSrcUrl:https://github.com/h3rald/litestore/blob/master --project litestore.nim +cache: + directories: + - nim-master + - nim-devel