forked from lavavu/LavaVu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
68 lines (56 loc) · 1.72 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
build: false
clone_depth: 10
#Will only run build/test on tag push
skip_non_tags: true
environment:
pypipw:
secure: Ay2WxyHxlSOaJBtn05cPBg==
matrix:
- PYTHON_VERSION: 3.6
MINICONDA: C:\Miniconda3
- PYTHON_VERSION: 3.6
MINICONDA: C:\Miniconda3-x64
- PYTHON_VERSION: 3.7
MINICONDA: C:\Miniconda3
- PYTHON_VERSION: 3.7
MINICONDA: C:\Miniconda3-x64
init:
- "ECHO %PYTHON_VERSION% %MINICONDA%"
install:
- cmd: echo "Filesystem:"
- dir
# Get needed submodules
- git submodule update --init
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# https://github.com/conda/conda/issues/8836
- activate
- conda info -a
- "conda create -q -n test-environment python=%PYTHON_VERSION% numpy scipy"
- activate test-environment
# Upgrade to the latest pip, setuptools, and wheel.
- python -m pip install -U pip setuptools wheel
- conda install twine
build_script:
- python setup.py install
#Looks like graphical testing is out...
#https://help.appveyor.com/discussions/problems/6946-opengl
test_script:
#Just run the doctests
- python lavavu/lavavu.py
# - git clone --depth 1 https://github.com/lavavu/Testing
# - cd Testing
# - python runall.py
after_test:
# This step builds your wheels.
- cmd: "echo [pypi] > %USERPROFILE%\\.pypirc"
- cmd: "echo username: OwKal >> %USERPROFILE%\\.pypirc"
- cmd: "echo password: %pypipw% >> %USERPROFILE%\\.pypirc"
- python setup.py bdist_wheel
artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*
on_success:
#Upload tagged version with twine
- cmd: "if [%APPVEYOR_REPO_TAG%]==[true] twine upload dist\\*.whl"