forked from mlr-org/mlrMBO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 1.58 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: r
dist: trusty
sudo: false
cache: packages
r:
- release
- devel
r_packages:
- devtools
- animation #vignettes: animation.Rmd
- e1071 #vignette: machine_learning_with_mlrmbo.Rmd
- pkgdown
- covr
addons:
apt:
packages:
- imagemagick
env:
matrix:
- _R_CHECK_LENGTH_1_CONDITION_=true
global:
secure: efki/PoCvROHC5GMOWqL3hiYeU/no71mnw927ZLF/D0eo3L0aBjT6533KWy3S8w+kg4ilgZzoS5/Nu6PuVFmfPmOiXKj95ZZVkuHDjnAiBFPsowneruOAYNMpwGlM1A3Z3T6jTjtX+FtvlgukhVNrkNoXFy5SmZ5pclic0Z7zfM=
before_script:
- R --no-save <<< 'library("devtools"); document()'
after_success:
- 'if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_R_VERSION_STRING" == "release" && "$TRAVIS_EVENT_TYPE" != "cron" ]] ; then
R --no-save <<< "devtools::install(); pkgdown::build_site()";
git checkout master;
export TRAVIS_COMMIT_MSG="$(git log --format=%B --no-merges -n 1)";
git config --global user.name "Travis CI";
git config --global user.email "$COMMIT_AUTHOR_EMAIL";
git config credential.helper "store --file=.git/credentials";
echo "https://${GH_TOKEN}:@github.com" >> .git/credentials;
git config push.default matching;
git add --force man/*;
git add --force README.md;
git add --force docs/*;
git rm -r --cached $(find . -type d -name "*_cache");
git commit man DESCRIPTION NAMESPACE README.md docs -m "update auto-generated documentation [ci skip]" -m "$TRAVIS_COMMIT_MSG" || true;
git push;
fi;'
- 'if [[ "$TRAVIS_R_VERSION_STRING" == "devel" && "$TRAVIS_EVENT_TYPE" != "cron" ]] ; then
Rscript -e "covr::coveralls()";
fi;'