forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
35 lines (29 loc) · 1.06 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
# Copyright 2017, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
version: 1.0.{build}
environment:
matrix:
- PYTHON: C:\Python35
- PYTHON: C:\Python36
- PYTHON: C:\Python37
# Set Travis CI variables for skipping the CI-unavailable tests.
TRAVIS_PULL_REQUEST_SLUG: invalid
TRAVIS_REPO_SLUG: invalid-but-different
build: false
deploy: false
skip_branch_with_pr: true
install:
- "%PYTHON%\\python.exe -m venv venv"
- venv\Scripts\activate.bat
- pip.exe install -r requirements.txt
- pip.exe install pytest
- pip.exe install vcrpy
# Use py.test for output of xunit test results.
test_script:
- py.test -v --tb=short --junit-xml=test_results.xml
# Upload the test results to appveyor so they are shown on the "Tests" tab.
on_finish:
- ps: $wc = New-Object 'System.Net.WebClient'
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test_results.xml))