File tree Expand file tree Collapse file tree 2 files changed +18
-19
lines changed Expand file tree Collapse file tree 2 files changed +18
-19
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2323before_script :
2424- R --no-save <<< 'library("devtools"); document()'
2525after_success :
26- - if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" && "${TRAVIS_R_VERSION_STRING}"
27- == "release" ]]; then bash .github/deploy.sh; fi;
28- - if [[ "${TRAVIS_R_VERSION_STRING}" == "release" ]]; then Rscript -e 'covr::coveralls()'; fi;
26+ - ' if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" && "${TRAVIS_R_VERSION_STRING}"
27+ == "release" && $TRAVIS_EVENT_TYPE != "cron" ]]; then
28+ R --no-save <<< "devtools::install(); pkgdown::build_site()";
29+ git checkout master;
30+ export TRAVIS_COMMIT_MSG="$(git log --format=%B --no-merges -n 1)";
31+ git config --global user.name "Travis CI";
32+ git config --global user.email "$COMMIT_AUTHOR_EMAIL";
33+ git config credential.helper "store --file=.git/credentials";
34+ echo "https://${GH_TOKEN}:@github.com" >> .git/credentials;
35+ git config push.default matching;
36+ git add --force man/*;
37+ git add --force README.md;
38+ git add --force docs/*;
39+ git rm -r --cached $(find . -type d -name "*_cache");
40+ git commit man DESCRIPTION NAMESPACE README.md docs -m "update auto-generated documentation [ci skip]" -m "$TRAVIS_COMMIT_MSG" || true;
41+ git push;
42+ Rscript -e "covr::coveralls()";
43+ fi;'
You can’t perform that action at this time.
0 commit comments