aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 9c56b1f3c027b2689ca50bb925fae2700c1ba740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
sudo: false
language: c
os:
  - linux
  - osx
dist: trusty
before_script:
  - export RELEASE=`curl --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
  - export TXZ=`curl --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | grep linux`
  - export VERSION=`echo $TXZ | cut -d"-" -f 2,2`
  - curl -L --silent -o $TXZ https://github.com/nim-lang/nightlies/releases/download/$RELEASE/$TXZ
  - tar xf $TXZ
  - cd nim-$VERSION
  - sh build.sh
  - bin/nim c koch
  - ./koch boot -d:release
  - ./koch nimble
  - export PATH=$(pwd)/bin:$PATH
  - cd ..
script:
  - nimble install -y
  - nimble tests