Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Travis windows build #3300

Merged
merged 3 commits into from Oct 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion .travis.yml
Expand Up @@ -5,6 +5,7 @@ rust: nightly
os:
- linux
- osx
- windows

sudo: false

Expand All @@ -23,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
Expand All @@ -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
Expand All @@ -49,10 +52,14 @@ 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
- os: osx
- os: windows

script:
- |
Expand Down
4 changes: 3 additions & 1 deletion ci/base-tests.sh
Expand Up @@ -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
Expand Down