@@ -57,7 +57,7 @@ script:
57
57
- CTEST_OUTPUT_ON_FAILURE=1 make test
58
58
- make coveralls
59
59
- cd ..
60
- after_success :
60
+ install :
61
61
# run CODES integration testing for master branch only
62
62
- if : branch=master
63
63
- cd ..
@@ -69,31 +69,26 @@ after_success:
69
69
- make
70
70
- make tests
71
71
- make check
72
- deploy :
72
+ after_success :
73
73
- bash <(curl -s https://codecov.io/bash)
74
74
- # # the following automatically builds the doxygen
75
75
- # # documentation and pushes it to the gh_pages branch
76
76
- # # 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
91
79
- cmake -DROSS_BUILD_DOXYGEN=ON -DDOXYGEN_CALLER_GRAPHS=ON -DDOXYGEN_CALL_GRAPHS=ON ..
92
80
- 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