Skip to content

Commit 46d9d1a

Browse files
author
Daniel Dulaney
committed
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 9c791e5 commit 46d9d1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.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)