-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (39 loc) · 1.46 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
version: build{build}
branches:
only:
- master
- pre-release
- dev
image:
- Visual Studio 2015
- Ubuntu1804
max_jobs: 1
environment:
CODECOV_TOKEN: "11e629de-a607-4624-a3c2-71bac08124a5"
matrix:
# For Python versions available on Appveyor, see
# https://www.appveyor.com/docs/windows-images-software/#python
# https://www.appveyor.com/docs/linux-images-software#python
- PYTHON: "C:\\Python36-x64"
install:
# We need wheel installed to build wheels
- cmd: "%PYTHON%\\python.exe -m pip install wheel pytest"
- sh: "sudo apt -y install python3-pip && sudo -H pip3 install wheel pytest codecov pytest-cov && sudo locale-gen en_US.UTF-8 && sudo locale-gen fr_FR.UTF-8 && sudo python3 setup.py install"
build: off
test_script:
# Note that you must use the environment variable %PYTHON% to refer to
# the interpreter you're using - Appveyor does not do anything special
# to put the Python version you want to use on PATH.
- cmd: "%PYTHON%\\python.exe setup.py test"
- sh: "pytest --cov=mathmakerlib tests/"
after_test:
# This step builds your wheels.
- cmd: "%PYTHON%\\python.exe setup.py bdist_wheel"
- sh: "codecov"
artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*
#on_success:
# You can use this step to upload your artifacts to a public website.
# See Appveyor's documentation for more details. Or you can simply
# access your wheels from the Appveyor "artifacts" tab for your build.