Skip to content

Commit

Permalink
fixup travis syntax for deploy stage
Browse files Browse the repository at this point in the history
  • Loading branch information
gonsie committed Oct 5, 2020
1 parent 853bb1f commit e827b96
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..
Expand All @@ -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 ross.gh.robot@gmail.com
-
- # 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: ross.gh.robot@gmail.com
on:
branch: master
script:
- rm -r ROSS-docs/docs
- mv ROSS/build-docs/docs/html ROSS-docs/docs

0 comments on commit e827b96

Please sign in to comment.