travis: use cached nim instead of docker

This commit is contained in:
Jacek Sieka 2018-09-02 21:02:08 -06:00
parent 12cc5dcad8
commit 78d8a628e2
No known key found for this signature in database
GPG Key ID: 6299FEB3EB6FA465

View File

@ -1,42 +1,21 @@
# Travis config for hardy using Status Nim docker. language: c # or other C/C++ variants
matrix: sudo: false
# allow_failures:
# - os: osx
include: # https://docs.travis-ci.com/user/caching/
- os: linux cache:
sudo: required directories:
services: - nim
- docker
before_install:
- docker pull statusteam/nim-base
script:
- docker run statusteam/nim-base nim --version
- docker run -v "$(pwd):/project" -w /project statusteam/nim-base sh -c "nimble install -dy && nimble test"
- os: osx os:
before_install: - linux
- brew update - osx
- brew install rocksdb
# - brew install gcc
- git clone https://github.com/nim-lang/nim.git install:
- cd nim # build nim from our own branch, to avoid downtime due to nim regressions
- git remote add statusim https://github.com/status-im/nim.git - "export NIMVER=$(git ls-remote https://github.com/status-im/nim.git HEAD | cut -f 1)"
- git fetch statusim - "{ [ -f nim/$NIMVER/bin/nim ] && [ -f nim/$NIMVER/bin/nimble ] ; } || { rm -rf nim ; mkdir -p nim; git clone https://github.com/status-im/nim.git nim/$NIMVER; cd nim/$NIMVER; sh build_all.sh; cd ../.. ; }"
- git config --global user.email "you@example.com" - "export PATH=$PWD/nim/$NIMVER/bin:$PATH"
- git config --global user.name "Your Name"
- for b in $(git branch -a --list 'statusim/status-autopatch-*'); do git merge $b; done
- git clone --depth 1 https://github.com/nim-lang/csources.git
- cd csources
- sh build.sh
- cd ..
- export PATH=$PWD/bin:$PATH
- nim c koch
- ./koch boot -d:release
- ./koch nimble
- cd ..
script: script:
- nimble install -dy && nimble test - nimble install -dy && nimble test