Skip to content

Commit

Permalink
travis: add failing windows job
Browse files Browse the repository at this point in the history
cargo-bloat doesn't support windows. But it's still failing for no
reason.
  • Loading branch information
hdhoang committed Dec 16, 2018
1 parent 62b8dc1 commit cbb9fa8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ rust: nightly-2018-12-06
os:
- linux
- osx
- windows

matrix:
include:
Expand All @@ -12,6 +13,8 @@ matrix:
rustup component add rustfmt
script:
cargo fmt --all -- --check
allow_failures:
- os: windows

before_install:
- |
Expand All @@ -30,7 +33,7 @@ install:
script:
- make
- cargo build --features use_semihosting
- make bloat
- "[[ ${TRAVIS_OS_NAME} != 'windows' ]] && make bloat"

cache:
cargo: true
Expand Down
2 changes: 2 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -eux
main() {
which cargo-bloat || (cd /; cargo install cargo-bloat)
which cargo-objcopy || (cd /; cargo install cargo-binutils)
# For Travis CI on Windows
which make || choco install make python2
}

main

0 comments on commit cbb9fa8

Please sign in to comment.