Skip to content

Commit e827b96

Browse files
committed
fixup travis syntax for deploy stage
1 parent 853bb1f commit e827b96

File tree

1 file changed

+18
-23
lines changed

1 file changed

+18
-23
lines changed

.travis.yml

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ script:
5757
- CTEST_OUTPUT_ON_FAILURE=1 make test
5858
- make coveralls
5959
- cd ..
60-
after_success:
60+
install:
6161
# run CODES integration testing for master branch only
6262
- if: branch=master
6363
- cd ..
@@ -69,31 +69,26 @@ after_success:
6969
- make
7070
- make tests
7171
- make check
72-
deploy:
72+
after_success:
7373
- bash <(curl -s https://codecov.io/bash)
7474
- ## the following automatically builds the doxygen
7575
- ## documentation and pushes it to the gh_pages branch
7676
- ## Shamelessly stolen from http://bit.ly/1H1sawW
77-
-
78-
- # First, set up credentials using the environment variables
79-
- # GIT_NAME, GIT_EMAIL and GH_TOKEN. These were passed
80-
- # encrypted to travis and should have been decrypted
81-
- # using travis' private key before this script was run.
82-
- git config --global user.name "ROSS bot"
83-
- git config --global user.email [email protected]
84-
-
85-
- # clone the whole repo again, but switch to gh_pages branch
86-
- git clone -b master --single-branch https://github.com/ross-org/ross-org.github.io
87-
- cd ross-org.github.io
88-
- git clone -b master --single-branch https://github.com/ross-org/ROSS
89-
- cd ROSS
90-
- mkdir build && cd build
77+
before_deploy:
78+
- mkdir docs-build && cd docs-build
9179
- cmake -DROSS_BUILD_DOXYGEN=ON -DDOXYGEN_CALLER_GRAPHS=ON -DDOXYGEN_CALL_GRAPHS=ON ..
9280
- make apidoc
93-
- cd ../..
94-
- git rm -r ROSS-docs
95-
- mkdir -p ROSS-docs/docs
96-
- mv ROSS/build/docs/html ROSS-docs/docs
97-
- git add ROSS-docs
98-
- git commit -m "Automatic doxygen build."
99-
- git push https://${GH_TOKEN}@github.com/ROSS-org/ross-org.github.io master
81+
deploy:
82+
provider: pages
83+
skip_cleanup: true
84+
github_token: $GH_TOKEN
85+
keep_history: true
86+
repo: ross-org/ross-org.github.io
87+
target_branch: master
88+
name: "ROSS bot"
89+
90+
on:
91+
branch: master
92+
script:
93+
- rm -r ROSS-docs/docs
94+
- mv ROSS/build-docs/docs/html ROSS-docs/docs

0 commit comments

Comments
 (0)