1
1
environment :
2
- R_ARCH : x64
3
- USE_RTOOLS : true
4
2
matrix :
5
3
- target : msvc
6
4
ver : 2015
@@ -12,13 +10,6 @@ environment:
12
10
configuration : Release
13
11
- target : mingw
14
12
generator : " Unix Makefiles"
15
- - target : jvm
16
- - target : rmsvc
17
- ver : 2015
18
- generator : " Visual Studio 14 2015 Win64"
19
- configuration : Release
20
- - target : rmingw
21
- generator : " Unix Makefiles"
22
13
23
14
# matrix:
24
15
# fast_finish: true
@@ -47,18 +38,6 @@ install:
47
38
conda install -y numpy scipy pandas matplotlib pytest scikit-learn graphviz python-graphviz hypothesis
48
39
)
49
40
- set PATH=C:\Miniconda3-x64\Library\bin\graphviz;%PATH%
50
- # R: based on https://github.com/krlmlr/r-appveyor
51
- - ps : |
52
- if($env:target -eq 'rmingw' -or $env:target -eq 'rmsvc') {
53
- #$ErrorActionPreference = "Stop"
54
- Invoke-WebRequest https://raw.githubusercontent.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "$Env:TEMP\appveyor-tool.ps1"
55
- Import-Module "$Env:TEMP\appveyor-tool.ps1"
56
- Bootstrap
57
- $BINARY_DEPS = "c('XML','igraph')"
58
- cmd.exe /c "R.exe -q -e ""install.packages($BINARY_DEPS, repos='$CRAN', type='win.binary')"" 2>&1"
59
- $DEPS = "c('data.table','magrittr','stringi','ggplot2','DiagrammeR','Ckmeans.1d.dp','vcd','testthat','lintr','knitr','rmarkdown')"
60
- cmd.exe /c "R.exe -q -e ""install.packages($DEPS, repos='$CRAN', type='both')"" 2>&1"
61
- }
62
41
63
42
build_script :
64
43
- cd %APPVEYOR_BUILD_FOLDER%
@@ -81,53 +60,12 @@ build_script:
81
60
mkdir wheel &&
82
61
python setup.py bdist_wheel --universal --plat-name win-amd64 -d wheel
83
62
)
84
- # R package: make + mingw standard CRAN packaging (only x64 for now)
85
- - if /i "%target%" == "rmingw" (
86
- make Rbuild &&
87
- ls -l &&
88
- R.exe CMD INSTALL xgboost*.tar.gz
89
- )
90
- # R package: cmake + VC2015
91
- - if /i "%target%" == "rmsvc" (
92
- mkdir build_rmsvc%ver% &&
93
- cd build_rmsvc%ver% &&
94
- cmake .. -G"%generator%" -DCMAKE_CONFIGURATION_TYPES="Release" -DR_LIB=ON &&
95
- cmake --build . --target install --config Release
96
- )
97
- - if /i "%target%" == "jvm" cd jvm-packages && mvn test -pl :xgboost4j_2.12
98
63
99
64
test_script :
100
65
- cd %APPVEYOR_BUILD_FOLDER%
101
66
- if /i "%DO_PYTHON%" == "on" python -m pytest tests/python
102
- # mingw R package: run the R check (which includes unit tests), and also keep the built binary package
103
- - if /i "%target%" == "rmingw" (
104
- set _R_CHECK_CRAN_INCOMING_=FALSE&&
105
- set _R_CHECK_FORCE_SUGGESTS_=FALSE&&
106
- R.exe CMD check xgboost*.tar.gz --no-manual --no-build-vignettes --as-cran --install-args=--build
107
- )
108
- # MSVC R package: run only the unit tests
109
- - if /i "%target%" == "rmsvc" (
110
- cd R-package &&
111
- R.exe -q -e "library(testthat); setwd('tests'); source('testthat.R')"
112
- )
113
-
114
- on_failure :
115
- # keep the whole output of R check
116
- - if /i "%target%" == "rmingw" (
117
- 7z a failure.zip *.Rcheck\* &&
118
- appveyor PushArtifact failure.zip
119
- )
120
67
121
68
artifacts :
122
- # log from R check
123
- - path : ' *.Rcheck\**\*.log'
124
- name : Logs
125
- # source R-package
126
- - path : ' \xgboost_*.tar.gz'
127
- name : Bits
128
- # binary R-package
129
- - path : ' **\xgboost_*.zip'
130
- name : Bits
131
69
# binary Python wheel package
132
70
- path : ' **\*.whl'
133
71
name : Bits
0 commit comments