add utf8 formatting check to the clang tests on travis
This will automatically detect BOM's and such which might be accidentally committed.
This commit is contained in:
parent
3b8b409079
commit
394f4e273c
2 changed files with 8 additions and 7 deletions
10
.travis.yml
10
.travis.yml
|
@ -16,21 +16,21 @@ before_install:
|
|||
- if [ "$CXX" = "g++" ]; then export TARGETS="wesnoth"; fi
|
||||
- if [ "$CXX" = "g++" ]; then export WML_TESTS=false; fi
|
||||
- if [ "$CXX" = "g++" ]; then export CPP_TESTS=false; fi
|
||||
- if [ "$CXX" = "g++" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
|
||||
- if [ "$CXX" = "g++" ]; then time sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
|
||||
- if [ "$CXX" = "g++" ]; then time sudo apt-get update -qq; fi
|
||||
- if [ "$CXX" = "g++" ]; then time sudo apt-get install g++-4.8; fi
|
||||
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
|
||||
- time sudo apt-get install moreutils
|
||||
- ./check_utf8.sh
|
||||
- if [ "$CXX" = "clang++" ]; then time sudo apt-get install moreutils
|
||||
install:
|
||||
- time sudo apt-get update -qq
|
||||
- time sudo apt-get install -qq libboost-iostreams-dev libboost-program-options-dev libboost-regex-dev libboost-system-dev libboost-test-dev libcairo2-dev libfribidi-dev libpango1.0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
|
||||
script:
|
||||
- if [ "$CXX" = "clang++" ]; then time ./check_utf8.sh; fi
|
||||
- scons cxxtool=$CXX --debug=time strict=$STRICT_COMPILATION $TARGETS
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
- if [[ "$CPP_TESTS" = true ]]; then ./test_wrapper.sh; fi
|
||||
- if [[ "$WML_TESTS" = true ]]; then ./run_wml_tests -v -t 20; fi
|
||||
- if [[ "$CPP_TESTS" = true ]]; then time ./test_wrapper.sh; fi
|
||||
- if [[ "$WML_TESTS" = true ]]; then time ./run_wml_tests -v -t 20; fi
|
||||
after_failure:
|
||||
- ./travis_after_failure.sh
|
||||
notifications:
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
# Install isutf8 program (from package "moreutils" at least in linux mint)
|
||||
# in order to use this script
|
||||
find src/ -type f -exec isutf8 {} \;
|
||||
find data/ -not -name "*.png" -not -name "*.ogg" -not -name "*.jpg" -not -name "*.wav" -not -name "*.gif" -not -name "*.xcf" -type f -exec isutf8 {} \;
|
||||
set -e
|
||||
find src/ -type f -print0 | xargs -0 isutf8 --
|
||||
find data/ -not -name "*.png" -not -name "*.ogg" -not -name "*.jpg" -not -name "*.wav" -not -name "*.gif" -not -name "*.xcf" -type f -print0 | xargs -0 isutf8 --
|
||||
|
|
Loading…
Add table
Reference in a new issue