Skip to content

Commit 8bdf771

Browse files
committed
cleanup travis build
1 parent 7a1ae5e commit 8bdf771

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

.github/deploy.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

.travis.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ env:
2323
before_script:
2424
- R --no-save <<< 'library("devtools"); document()'
2525
after_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;'

0 commit comments

Comments
 (0)