Skip to content

Commit 6aebf74

Browse files
Daniel Dulaneybacek
Daniel Dulaney
authored andcommitted
build: fix bindgen warnings breaking TravisCI
When rustfmt is missing, bindgen puts anything on one line. Any warnings then dump so many logs that TravisCI is overwhelmed. The fix is to add rustfmt to the environment. See rust-lang/rust-bindgen#1600
1 parent dd8bc3b commit 6aebf74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ addons:
1616
- build-essential
1717
dist: bionic
1818
before_install:
19+
# Without rustfmt, bindgen puts everything on one line and any warnings dump so many logs they break Travis
20+
# See https://github.com/rust-lang/rust-bindgen/issues/1600
21+
- rustup component add rustfmt
1922
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install yasm; fi
2023
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
2124
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install yasm; fi
22-
- rustup component add rustfmt
2325

2426
script: |
2527
travis_wait cargo build --verbose --features "build"

0 commit comments

Comments
 (0)