From 98b20862628e405ab76b423c7264fd7238340159 Mon Sep 17 00:00:00 2001 From: mratsim Date: Mon, 26 Mar 2018 11:48:21 +0200 Subject: [PATCH] Use Status docker for continuous integration --- .travis.yml | 49 ++++++++----------------------------------------- 1 file changed, 8 insertions(+), 41 deletions(-) diff --git a/.travis.yml b/.travis.yml index 90ec7e4..72f75e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,43 +1,10 @@ -language: c - -cache: ccache - -matrix: - include: - # Build and test against the master (stable) and devel branches of Nim - # Build and test using both gcc and clang - - os: linux - env: CHANNEL=stable - compiler: gcc - - - os: linux - env: CHANNEL=devel - compiler: gcc - - # On OSX we only test against clang (gcc is mapped to clang by default) - - os: osx - env: CHANNEL=stable - compiler: clang - - allow_failures: - # Ignore failures when building against the devel Nim branch - # Also ignore OSX, due to very long build time and Homebrew/curl SSLRead errors - - env: CHANNEL=devel - - os: osx - fast_finish: true - -install: - - export CHOOSENIM_NO_ANALYTICS=1 - - curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh - - sh init.sh -y - - export PATH=~/.nimble/bin:$PATH - - echo "export PATH=~/.nimble/bin:$PATH" >> ~/.profile - - choosenim $CHANNEL +# Travis config for MpInt using Status Nim docker. +sudo: required +services: + - docker +before_install: + - docker pull statusteam/nim-base script: - - nimble refresh - - nimble test - -branches: - except: - - gh-pages + - docker run statusteam/nim-base nim --version + - docker run -v "$(pwd):/project" -w /project statusteam/nim-base sh -c "nimble install -dy && nimble test"