Fix syntax problem with .travis.yml
This commit is contained in:
parent
12de955a47
commit
d9bdad714f
37
.travis.yml
37
.travis.yml
@ -1,34 +1,23 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get install libboost-dev libboost-all-dev
|
- sudo apt-get install libboost-dev libboost-all-dev
|
||||||
- sudo pip install cpp-coveralls
|
- sudo pip install cpp-coveralls
|
||||||
script:
|
script:
|
||||||
- cmake -D ENABLE_COVERAGE:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=Debug .
|
- cmake -D ENABLE_COVERAGE:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=Debug .
|
||||||
- make -j2
|
- make -j2
|
||||||
- make test
|
- make test
|
||||||
- mkdir gcov
|
- mkdir gcov
|
||||||
- find CMakeFiles/ -name "*.gc*" -exec mv {} gcov/ \;
|
- find CMakeFiles/ -name "*.gc*" -exec mv {} gcov/ \;
|
||||||
- gcov -d -o gcov gcov/*.gcda
|
- gcov -d -o gcov gcov/*.gcda
|
||||||
- coveralls -n -E ".*\.cpp"
|
- coveralls -n -E ".*\.cpp"
|
||||||
after_script:
|
after_script:
|
||||||
- pushd ..
|
- contrib/codeanalysis/runcppcheck.sh
|
||||||
- wget http://sourceforge.net/projects/cppcheck/files/cppcheck/1.64/cppcheck-1.64.tar.bz2
|
|
||||||
- tar -xvf cppcheck-1.64.tar.bz2
|
|
||||||
- cd cppcheck-1.64
|
|
||||||
- make -j2
|
|
||||||
- popd
|
|
||||||
- ../cppcheck-1.64/cppcheck --enable=all --inconclusive -I include --inline-suppr --std=c++11 --platform=unix64 src/main.cpp src/chai*.cpp --template ' - __{severity}__: [{file}:{line}](../blob/TRAVIS_COMMIT/{file}#L{line}) {message} ({id})' 2>output
|
|
||||||
- sed -i "s/TRAVIS_COMMIT/${TRAVIS_COMMIT}/g" output
|
|
||||||
- echo -n '{ "body": " ' > output.json
|
|
||||||
- echo -n `awk '{printf "%s\\\\n", $0;}' output` >> output.json
|
|
||||||
- echo -n '"}' >> output.json
|
|
||||||
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then curl -H "Authorization: token ${TOKEN}" --request POST --data @output.json https://api.github.com/repos/ChaiScript/ChaiScript/commits/${TRAVIS_COMMIT}/comments; else curl -H "Authorization: token ${TOKEN}" --request POST --data @output.json https://api.github.com/repos/ChaiScript/ChaiScript/issues/${TRAVIS_PULL_REQUEST}/comments; fi
|
|
||||||
notifications:
|
notifications:
|
||||||
recipients:
|
|
||||||
- jason@emptycrate.com
|
|
||||||
email:
|
email:
|
||||||
|
recipients:
|
||||||
|
- jason@emptycrate.com
|
||||||
on_success: always
|
on_success: always
|
||||||
on_failure: always
|
on_failure: always
|
||||||
env:
|
env:
|
||||||
|
16
contrib/codeanalysis/runcppcheck.sh
Executable file
16
contrib/codeanalysis/runcppcheck.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
pushd ..
|
||||||
|
wget http://sourceforge.net/projects/cppcheck/files/cppcheck/1.64/cppcheck-1.64.tar.bz2
|
||||||
|
tar -xvf cppcheck-1.64.tar.bz2
|
||||||
|
cd cppcheck-1.64
|
||||||
|
make -j2
|
||||||
|
popd
|
||||||
|
../cppcheck-1.64/cppcheck --enable=all --inconclusive -I include --inline-suppr --std=c++11 --platform=unix64 src/main.cpp src/chai*.cpp --template ' - __{severity}__: [{file}:{line}](../blob/TRAVIS_COMMIT/{file}#L{line}) {message} ({id})' 2>output
|
||||||
|
sed -i "s/TRAVIS_COMMIT/${TRAVIS_COMMIT}/g" output
|
||||||
|
echo -n '{ "body": " ' > output.json
|
||||||
|
echo -n `awk '{printf "%s\\\\n", $0;}' output` >> output.json
|
||||||
|
echo -n '"}' >> output.json
|
||||||
|
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then curl -H "Authorization: token ${TOKEN}" --request POST --data @output.json https://api.github.com/repos/ChaiScript/ChaiScript/commits/${TRAVIS_COMMIT}/comments; else curl -H "Authorization: token ${TOKEN}" --request POST --data @output.json https://api.github.com/repos/ChaiScript/ChaiScript/issues/${TRAVIS_PULL_REQUEST}/comments; fi
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user