all repos — hastyscribe @ e9b5082ba164e92f19ce50c45544f5145dff080d

A professional markdown compiler.

Updated build config.
h3rald h3rald@h3rald.com
Thu, 16 Apr 2020 18:05:19 +0200
commit

e9b5082ba164e92f19ce50c45544f5145dff080d

parent

740b4bc0c203789169e675ee1ef43a9348d6ce60

1 files changed, 14 insertions(+), 52 deletions(-)

jump to
M .travis.yml.travis.yml

@@ -1,59 +1,21 @@

-# 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 +cache: + directories: + - "$HOME/.nimble" + - "$HOME/.choosenim" install: + - export CHOOSENIM_CHOOSE_VERSION="1.0.0" - | - 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 .. + curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh + sh init.sh -y before_script: - - export PATH="$PATH:$PWD/nifty:$PWD/nim-$BRANCH/bin" + - set -e + - set -x + - export PATH=$HOME/.nimble/bin:$PATH + - export CHOOSENIM_NO_ANALYTICS=1 script: + - nimble install -y nifty - nifty install - nifty build discount - - cd src - - nim c --cc:$CC --verbosity:0 -d:discount hastyscribe.nim -cache: - directories: - - nim-master - - nim-devel - - nifty + - nimble -y build + - ./build_guide