From ff9dfccadee1a724f357999fb9eb671fe04e837c Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Fri, 12 Oct 2018 07:19:34 +0200 Subject: [PATCH 1/3] Add Travis windows build See https://blog.travis-ci.com/2018-10-11-windows-early-release --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6d44c7faa93d..20c98062dd89 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ rust: nightly os: - linux - osx + - windows sudo: false @@ -36,6 +37,8 @@ matrix: env: BASE_TESTS=true - os: linux env: BASE_TESTS=true + - os: windows + env: BASE_TEST=true - env: INTEGRATION=rust-lang/cargo - env: INTEGRATION=rust-lang-nursery/rand - env: INTEGRATION=rust-lang-nursery/stdsimd @@ -53,6 +56,7 @@ matrix: exclude: - os: linux - os: osx + - os: windows script: - | From 024ccb4f508c184127e2522ce8ac77a9229b31e9 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Fri, 12 Oct 2018 07:41:25 +0200 Subject: [PATCH 2/3] Move Travis Windows build to allowed failures Until the remaining issues are fixed. This also enabled `fast_finish`. It will finish even if the windows build is still running. --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 20c98062dd89..7abfe0e03dd4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,6 +52,9 @@ matrix: - env: INTEGRATION=serde-rs/serde - env: INTEGRATION=Geal/nom - env: INTEGRATION=hyperium/hyper + allow_failures: + - os: windows + env: BASE_TEST=true # prevent these jobs with default env vars exclude: - os: linux From f5a38f2323006fb56cc730cc1313f9578bc84c68 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Fri, 12 Oct 2018 07:59:08 +0200 Subject: [PATCH 3/3] Only run markdown linter on linux Because: * There's no need to run it on more than one platform * It doesn't work on windows --- .travis.yml | 2 +- ci/base-tests.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7abfe0e03dd4..5446f1ab568e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ before_install: install: - | - if [ -z ${INTEGRATION} ]; then + if [ -z ${INTEGRATION} ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then . $HOME/.nvm/nvm.sh nvm install stable nvm use stable diff --git a/ci/base-tests.sh b/ci/base-tests.sh index ebf4a127cdc0..72a38ee5e586 100755 --- a/ci/base-tests.sh +++ b/ci/base-tests.sh @@ -14,7 +14,9 @@ set -ex echo "Running clippy base tests" PATH=$PATH:./node_modules/.bin -remark -f *.md > /dev/null +if [ "$TRAVIS_OS_NAME" == "linux" ]; then + remark -f *.md > /dev/null +fi # build clippy in debug mode and run tests cargo build --features debugging cargo test --features debugging