2018-04-11 13:27:56 +00:00
|
|
|
matrix:
|
2018-04-12 10:34:20 +00:00
|
|
|
# allow_failures:
|
|
|
|
# - os: osx
|
2018-04-11 13:27:56 +00:00
|
|
|
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
before_install:
|
|
|
|
- docker pull statusteam/nim-base
|
|
|
|
script:
|
|
|
|
- docker run statusteam/nim-base nim --version
|
2018-04-11 13:58:48 +00:00
|
|
|
- docker run -v "$(pwd):/project" -w /project statusteam/nim-base sh -c "nimble install -dy && nimble test"
|
2018-04-11 13:27:56 +00:00
|
|
|
|
|
|
|
- os: osx
|
|
|
|
before_install:
|
2018-06-24 14:34:32 +00:00
|
|
|
- brew update
|
|
|
|
- brew install rocksdb
|
2018-04-11 14:56:24 +00:00
|
|
|
# - brew install gcc
|
|
|
|
|
2018-04-11 13:27:56 +00:00
|
|
|
- git clone https://github.com/nim-lang/nim.git
|
|
|
|
- cd nim
|
|
|
|
- git remote add statusim https://github.com/status-im/nim.git
|
|
|
|
- git fetch statusim
|
|
|
|
- git config --global user.email "you@example.com"
|
|
|
|
- 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:
|
|
|
|
- nimble install -dy && nimble test
|