Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit f1ce2d0

Browse files
Daniel Dulaneymeh
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 aa2c77d commit f1ce2d0

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)