forked from napari/napari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
76 lines (69 loc) · 2.66 KB
/
.cirrus.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
task:
auto_cancellation: true
env:
matrix:
PY_VER: "3.6"
PY_VER: "3.7"
matrix:
- name: linux
container:
image: gcc:latest
env:
PATH: $HOME/conda/bin:$PATH
DISPLAY: ":99"
system_script:
- apt-get update
- apt-get install -y libgl1-mesa-glx xvfb libqt5x11extras5
conda_script:
- curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > install.sh
- bash install.sh -b -p $HOME/conda
- conda update -yn base conda
- conda install -y python=$PY_VER
- rm install.sh
# https://github.com/cirruslabs/cirrus-ci-docs/issues/97
xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24
- name: windows
windows_container:
image: cirrusci/windowsservercore:2016
env:
PATH: $PATH;$USERPROFILE\anaconda\Scripts;$USERPROFILE\anaconda;$ALLUSERSPROFILE\chocolately\bin
# https://github.com/vispy/vispy/blob/master/appveyor.yml#L44
VISPY_GL_LIB: $CIRRUS_WORKING_DIR\opengl32.dll
PYTHON_ARCH: 64
system_script:
# install chocolatey (windows package manager)
- ps: iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# install OpenSSL
- ps: choco install -y openssl.light
# install OpenGL
- ps: Invoke-RestMethod -Uri https://raw.githubusercontent.com/vispy/vispy/v0.5.3/make/install_opengl.ps1 -Method Get -OutFile opengl.ps1
- powershell ./opengl.ps1
- ps: rm opengl.ps1
conda_script:
- ps: curl https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe -OutFile install.exe
- start /wait "" install.exe /InstallationType=AllUsers /AddToPath=1 /RegisterPython=1 /S /D=%USERPROFILE%\anaconda
- conda update -yn base conda
- conda install -y python=%PY_VER%
- pip install setuptools-scm
- ps: rm install.exe
- name: osx
osx_instance:
image: high-sierra-xcode-9.4.1
env:
PATH: $HOME/conda/bin:$PATH
conda_script:
- curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > install.sh
- bash install.sh -b -p $HOME/conda
- conda update -yn base conda
- conda install -y python=$PY_VER
- rm install.sh
install_script:
# pip >= 19.0 crashes on Linux with Python 3.7
- python -m pip install --retries 3 --upgrade "pip<19.0"
- pip install --retries 3 -r requirements.txt
- python setup.py develop
check_script:
- pip list
- python -c "import napari; print(napari.__version__)"
test_script:
- pytest -v