-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup travis syntax for deploy stage
- Loading branch information
Showing
1 changed file
with
18 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ script: | |
- CTEST_OUTPUT_ON_FAILURE=1 make test | ||
- make coveralls | ||
- cd .. | ||
after_success: | ||
install: | ||
# run CODES integration testing for master branch only | ||
- if: branch=master | ||
- cd .. | ||
|
@@ -69,31 +69,26 @@ after_success: | |
- make | ||
- make tests | ||
- make check | ||
deploy: | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
- ## the following automatically builds the doxygen | ||
- ## documentation and pushes it to the gh_pages branch | ||
- ## Shamelessly stolen from http://bit.ly/1H1sawW | ||
- | ||
- # First, set up credentials using the environment variables | ||
- # GIT_NAME, GIT_EMAIL and GH_TOKEN. These were passed | ||
- # encrypted to travis and should have been decrypted | ||
- # using travis' private key before this script was run. | ||
- git config --global user.name "ROSS bot" | ||
- git config --global user.email [email protected] | ||
- | ||
- # clone the whole repo again, but switch to gh_pages branch | ||
- git clone -b master --single-branch https://github.com/ross-org/ross-org.github.io | ||
- cd ross-org.github.io | ||
- git clone -b master --single-branch https://github.com/ross-org/ROSS | ||
- cd ROSS | ||
- mkdir build && cd build | ||
before_deploy: | ||
- mkdir docs-build && cd docs-build | ||
- cmake -DROSS_BUILD_DOXYGEN=ON -DDOXYGEN_CALLER_GRAPHS=ON -DDOXYGEN_CALL_GRAPHS=ON .. | ||
- make apidoc | ||
- cd ../.. | ||
- git rm -r ROSS-docs | ||
- mkdir -p ROSS-docs/docs | ||
- mv ROSS/build/docs/html ROSS-docs/docs | ||
- git add ROSS-docs | ||
- git commit -m "Automatic doxygen build." | ||
- git push https://${GH_TOKEN}@github.com/ROSS-org/ross-org.github.io master | ||
deploy: | ||
provider: pages | ||
skip_cleanup: true | ||
github_token: $GH_TOKEN | ||
keep_history: true | ||
repo: ross-org/ross-org.github.io | ||
target_branch: master | ||
name: "ROSS bot" | ||
email: [email protected] | ||
on: | ||
branch: master | ||
script: | ||
- rm -r ROSS-docs/docs | ||
- mv ROSS/build-docs/docs/html ROSS-docs/docs |