forked from sebp/scikit-survival
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
51 lines (43 loc) · 1.67 KB
/
appveyor.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
# AppVeyor.com is a Continuous Integration service to build and run tests under
# Windows
environment:
# see https://www.appveyor.com/docs/build-environment/#python
matrix:
- TARGET_ARCH: "x64"
CONDA_PY: "36"
CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
- TARGET_ARCH: "x64"
CONDA_PY: "37"
CONDA_INSTALL_LOCN: "C:\\Miniconda37-x64"
# We always use a 64-bit machine.
platform:
- x64
install:
- cmd: set "OLDPATH=%PATH%"
- cmd: set "PATH=%CONDA_INSTALL_LOCN%\\Scripts;%CONDA_INSTALL_LOCN%\\Library\\bin;%PATH%"
- cmd: conda config --set always_yes yes --set changeps1 no
- cmd: conda config --set auto_update_conda false
- cmd: conda update --yes --quiet conda
- cmd: set "PATH=%OLDPATH%"
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: conda info -a
# Install the build and runtime dependencies of the project.
- cmd: conda env create -n sksurv-test --file ci\appveyor\requirements_%CONDA_PY%.yaml
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat sksurv-test
- cmd: conda list
# Initialize the submodules
- cmd: git submodule update --init --recursive
# Create binary packages for the project.
- cmd: python setup.py bdist_wheel bdist_wininst
- ps: "ls dist"
# Install the generated wheel package to test it
- cmd: pip install --exists-action=w --pre --no-index --find-links dist/ scikit-survival
- cmd: rmdir sksurv /s /q
test_script:
- cmd: set "PYTHONWARNINGS=default"
- cmd: py.test -m "not slow" -k "not test_breast_cancer_rbf_cvxopt" tests/
artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
- path: dist\*
# Skip .NET project specific build phase.
build: off