From 923141b7bdf6ea49dc8ffd8a7108ce8ea1ddfbda Mon Sep 17 00:00:00 2001 From: cheatfate Date: Thu, 31 May 2018 19:16:48 +0300 Subject: [PATCH] Add macos tests. --- .travis.yml | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6f615b6..9ea1887 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,33 @@ -sudo: required -services: - - 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" +matrix: + include: + - os: linux + sudo: required + services: + - 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 + 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