Skip to content

Commit 91efe95

Browse files
committed
cleanup travis.yml
1 parent e485040 commit 91efe95

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ 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" && $TRAVIS_EVENT_TYPE != "cron" ]]; then
26+
- 'if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_R_VERSION_STRING" == "release" && "$TRAVIS_EVENT_TYPE" != "cron" ]] ; then
2827
R --no-save <<< "devtools::install(); pkgdown::build_site()";
2928
git checkout master;
3029
export TRAVIS_COMMIT_MSG="$(git log --format=%B --no-merges -n 1)";
@@ -40,7 +39,6 @@ after_success:
4039
git commit man DESCRIPTION NAMESPACE README.md docs -m "update auto-generated documentation [ci skip]" -m "$TRAVIS_COMMIT_MSG" || true;
4140
git push;
4241
fi;'
43-
- 'if [[ ${TRAVIS_R_VERSION_STRING}"
44-
== "devel" && $TRAVIS_EVENT_TYPE != "cron" ]] ; then
42+
- 'if [[ "$TRAVIS_R_VERSION_STRING" == "devel" && "$TRAVIS_EVENT_TYPE" != "cron" ]] ; then
4543
Rscript -e "covr::coveralls()";
4644
fi;'

0 commit comments

Comments
 (0)