Skip to content

Commit c0d1ac0

Browse files
Daniel Dulaneytilpner
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 1cbd081 commit c0d1ac0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sys/.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ addons:
1515
packages:
1616
- build-essential
1717
before_install:
18+
# Without rustfmt, bindgen puts everything on one line and any warnings dump so many logs they break Travis
19+
# See https://github.com/rust-lang/rust-bindgen/issues/1600
20+
- rustup component add rustfmt
1821
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then ./.travis/install_linux.sh; fi
1922
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
2023
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install yasm; fi

0 commit comments

Comments
 (0)