forked from DC-analysis/dclab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
53 lines (47 loc) · 1.62 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
52
53
clone_depth: 256
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false
environment:
R_VERSION: 3.6.3
matrix:
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38-x64"
install:
# actual install
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
# Check that we have the expected version and architecture for Python
- python --version
# Install R
- choco install -y wget --version 1.20
- wget -q https://cran.r-project.org/bin/windows/base/old/%R_VERSION%/R-%R_VERSION%-win.exe
- R-%R_VERSION%-win.exe /SILENT /DIR="C:\\Users\\appveyor\\R"
- set R_HOME=C:\Users\appveyor\R
- set PATH=%PATH%;C:\Users\appveyor\R\bin\x64
- set PATH=%PATH%;C:\Users\appveyor\R\bin\i386
- set RPY2_CFFI_MODE="ABI"
- appveyor R -e "install.packages('lme4', repos='http://cran.r-project.org')"
- echo %PATH%
# upgrade pip
- appveyor-retry python -m pip install --upgrade pip wheel
# latest version of fcswrite
- appveyor-retry pip install git+git://github.com/ZELLMECHANIK-DRESDEN/fcswrite.git --no-deps
# the rest
- appveyor-retry pip install -e .[all]
- python -m pip freeze
# verify R installation
- python -c "from rpy2 import situation; [print(ss) for ss in situation.iter_info()]"
build: off
test_script:
- appveyor-retry pip install pytest
- appveyor-retry pip install coverage
- appveyor-retry pip install codecov
- coverage run --source=dclab -m pytest tests
- coverage report -m
# Allow codecov to fail
- codecov || exit 0
artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
- path: dist\*