forked from mlr-org/mlr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (70 loc) · 3.15 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: r
sudo: false
dist: trusty
cache: packages
env:
global:
- _R_CHECK_TIMINGS_=0
- _R_CHECK_FORCE_SUGGESTS_=0 # no error if suggested packs are not avail
- _R_CHECK_TESTS_NLINES_=999
- R_MAX_NUM_DLLS=999
- secure: "d0xff7hriQyReF4y3/iR5sHJlXocKNKcN6/Gi/r9Hxsfuh2Hx3fouQCMSPP+Oba6MDgEvAfryToAxcmaoZByQMwgevB0OBy5xkatj3oTHmhN5Nbk3jNXxXfA6P0Oqxaf7lXVZk2+Ly+PWnbgXn0uhjzdaZo0cWtVJ660ajS0x9Q="
- WARMUPPKGS='roxygen2 mlrMBO purrr mlbench mldr RWeka RWekajars knitr dplyr ggplot2 ranger randomForest kernlab Rfast igraph rjson rmarkdown shiny svglite xgboost xml2'
addons:
apt:
packages:
- libgmp-dev
- libgsl0-dev
warnings_are_errors: true
r_check_args: "--as-cran --run-donttest"
r_github_packages:
- berndbischl/BBmisc
- berndbischl/parallelMap
- berndbischl/ParamHelpers
- RevolutionAnalytics/quickcheck/pkg
- jimhester/lintr
jobs:
include:
- stage: warmup-1
install:
- Rscript -e 'if (length(find.package("devtools", quiet = TRUE)) == 0) install.packages("devtools")'
- Rscript -e 'devtools::install_deps()'
- Rscript -e 'pkgs = trimws(strsplit(Sys.getenv("WARMUPPKGS"), " ")[[1]]); pkgs = pkgs[!pkgs %in% installed.packages()]; if (length(pkgs) > 0) install.packages(pkgs)'
script: true
- stage: warmup-2
install:
- Rscript -e 'devtools::install_deps(upgrade = TRUE, dependencies = TRUE)'
script: true
- stage: check
before_script:
- java -cp $HOME/R/Library/RWekajars/java/weka.jar weka.core.WekaPackageManager -install-package thirdparty/XMeans1.0.4.zip
- R --no-save <<< 'library("devtools"); document()'
script:
- R CMD build .
- travis_wait 100 R CMD check mlr*.tar.gz --as-cran --run-donttest
- grep -q -R "WARNING" "mlr.Rcheck/00check.log" ; [ $? -ne 0 ]
after_script:
- ../../travis-tool.sh dump_logs
after_success:
- git checkout master
- "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\""
- R --no-save <<< 'library("devtools"); document()'
- ./thirdparty/gen_families.sh > man/mlrFamilies.Rd
- git config user.name $GN
- git config user.email $GM
- git config credential.helper "store --file=.git/credentials"
- echo "https://$GT:@github.com" >> .git/credentials
- git config push.default matching
- git add --force man/*
- git commit man DESCRIPTION NAMESPACE -m "update auto-generated documentation [ci skip]" || true
- git push
- "[ $TRAVIS_PULL_REQUEST == \"false\" -a $TRAVIS_BRANCH == \"master\" ] && curl -s -X POST -H \"Content-Type:application/json\" -H \"Accept:application/json\" -H \"Travis-API-Version:3\" -H \"Authorization:token $TT\" -d \"{\\\"request\\\":{\\\"branch\\\":\\\"gh-pages\\\", \\\"message\\\":\\\"commit $TRAVIS_COMMIT $TRAVIS_COMMIT_MSG\\\"}}\" https://api.travis-ci.org/repo/mlr-org%2Fmlr-tutorial/requests"
notifications:
email:
recipients:
slack: mlr-org:DYNA3KIwcG9F4sQoeyTnPBhF#buildnotifications
on_success: change
on_failure: always