Fixing travis.yml
This commit is contained in:
parent
9eeafecd76
commit
248428657d
@ -9,3 +9,8 @@ trim_trailing_whitespace=true
|
|||||||
max_line_length=120
|
max_line_length=120
|
||||||
insert_final_newline=true
|
insert_final_newline=true
|
||||||
|
|
||||||
|
[.travis.yml]
|
||||||
|
indent_style=space
|
||||||
|
indent_size=2
|
||||||
|
tab_width=8
|
||||||
|
end_of_line=lf
|
||||||
|
34
.travis.yml
34
.travis.yml
@ -44,22 +44,22 @@ addons:
|
|||||||
script:
|
script:
|
||||||
- if [ "$RUN_TESTS" = "true" ]; then ./test.sh; fi
|
- if [ "$RUN_TESTS" = "true" ]; then ./test.sh; fi
|
||||||
|
|
||||||
install:
|
install: |
|
||||||
- [ "$RUN_COVERAGE" = "true" ] &&
|
[ "$RUN_COVERAGE" = "true" ] &&
|
||||||
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
|
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
|
||||||
tar xzf master.tar.gz &&
|
tar xzf master.tar.gz &&
|
||||||
mkdir kcov-master/build &&
|
mkdir kcov-master/build &&
|
||||||
cd kcov-master/build &&
|
cd kcov-master/build &&
|
||||||
cmake .. &&
|
cmake .. &&
|
||||||
make && make install DESTDIR=../tmp &&
|
make && make install DESTDIR=../tmp &&
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- [ "$RUN_COVERAGE" = "true" ] && ./scripts/cov.sh "$KCOV_CMD"
|
- true && [ "$RUN_COVERAGE" = "true" ] && ./scripts/cov.sh "$KCOV_CMD"
|
||||||
- [ $TRAVIS_BRANCH = master ] &&
|
- true && [ $TRAVIS_BRANCH = master ] &&
|
||||||
[ $TRAVIS_PULL_REQUEST = false ] &&
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
||||||
[ $TRAVIS_RUST_VERSION = stable ] &&
|
[ $TRAVIS_RUST_VERSION = stable ] &&
|
||||||
./scripts/doc.sh &&
|
./scripts/doc.sh &&
|
||||||
pip install --user ghp-import &&
|
pip install --user ghp-import &&
|
||||||
/home/travis/.local/bin/ghp-import -n target/doc &&
|
/home/travis/.local/bin/ghp-import -n target/doc &&
|
||||||
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
||||||
|
Loading…
Reference in New Issue
Block a user