-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
53 lines (45 loc) · 1.5 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
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
# environment variables
environment:
nodejs_version: "6.9"
matrix:
- PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_MAJOR: 3
PYTHON_ARCH: "64"
- PYTHON: "C:\\Miniconda3"
PYTHON_VERSION: "3.4.x"
PYTHON_MAJOR: 3
PYTHON_ARCH: "32"
# build cache to preserve files/folders between builds
cache:
- '%AppData%/npm-cache'
# scripts that run after cloning repository
install:
# Install node:
- ps: Install-Product node $env:nodejs_version
# Ensure python scripts are from right version:
- 'SET "PATH=%PYTHON%\Scripts;%PYTHON%;%PATH%"'
# Update install tools:
- 'conda install setuptools pip -y'
- 'python -m pip install --upgrade pip'
- 'python -m easy_install --upgrade setuptools'
# Install coverage utilities:
- 'pip install codecov'
# Install our package:
- 'pip install --upgrade ".[test]" -v'
build: off
# scripts to run before tests
before_test:
- git config --global user.email appveyor@fake.com
- git config --global user.name "AppVeyor CI"
- set "tmptestdir=%tmp%\clustergrammer_widget2-%RANDOM%"
- mkdir "%tmptestdir%"
- cd "%tmptestdir%"
# to run your custom scripts instead of automatic tests
test_script:
- 'py.test -l --cov-report xml:"%APPVEYOR_BUILD_FOLDER%\coverage.xml" --cov=clustergrammer_widget2 --pyargs clustergrammer_widget2'
on_success:
- cd "%APPVEYOR_BUILD_FOLDER%"
- codecov -X gcov --file "%APPVEYOR_BUILD_FOLDER%\coverage.xml"