simplift travis

This commit is contained in:
Timothee Cour 2018-11-27 20:19:24 -05:00
commit e7f58adc49

View file

@ -1,25 +1,31 @@
sudo: false
language: c
os: os:
- linux - linux
- osx - osx
dist: trusty
before_script: language: c
- curl -u $TOKEN -o latest.json --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest
- export RELEASE=`cat latest.json | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'` env:
- export TXZ=`cat latest.json | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | grep linux | tail -n 1` # test against both stable & devel
- export VERSION=`echo $TXZ | cut -d"-" -f 2,2` - BRANCH=stable
- echo "RELEASE = $RELEASE, TXZ = $TXZ, VERSION = $VERSION" - BRANCH=devel
- curl -L --silent -o $TXZ "https://github.com/nim-lang/nightlies/releases/download/$RELEASE/$TXZ"
- tar xf $TXZ cache:
- cd nim-$VERSION directories:
- sh build.sh - "$HOME/.nimble"
- bin/nim c koch - "$HOME/.choosenim"
- ./koch boot -d:release
- ./koch nimble matrix:
- export PATH=$(pwd)/bin:~/.nimble/bin:$PATH allow_failures:
- cd .. - env: BRANCH=devel
fast_finish: true
install:
- export CHOOSENIM_CHOOSE_VERSION=$BRANCH
- |
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
sh init.sh -y
- export PATH=$HOME/.nimble/bin:$PATH
- nimble refresh -y
script: script:
- nimble installWithDeps - nimble installWithDeps