Add MacOS CI to Travis

This commit is contained in:
Mamy Ratsimbazafy 2018-04-11 15:27:56 +02:00 committed by GitHub
parent e8e82954c1
commit 2b9c35ab22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 8 deletions

View File

@ -1,8 +1,36 @@
matrix:
# allow_failures:
# - os: osx
include:
- os: linux
sudo: required sudo: required
services: services:
- docker - docker
before_install: before_install:
- docker pull statusteam/nim-base - docker pull statusteam/nim-base
script: script:
- docker run -v "$(pwd):/project" -w /project statusteam/nim-base nim --version - docker run statusteam/nim-base nim --version
- docker run -v "$(pwd):/project" -w /project statusteam/nim-base sh -c "nimble refresh && nimble test" - docker run -v "$(pwd):/project" -w /project statusteam/nim-base nimble test
- os: osx
before_install:
- 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