# 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_VERSION: 3.5 MINICONDA: C:\Miniconda35 - PYTHON_VERSION: 3.6 MINICONDA: C:\Miniconda36 # 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: - "%MINICONDA%/Scripts/activate.bat" # Install each dependency in requires.txt individually *from conda*. It # cannot be pointed to "requirements.txt" directly as IBMQuantumExperience # is not on the conda repositories. - for /F "tokens=*" %%A in (requirements.txt) do conda install -y -q %%A # Install the rest of dependencies via pip. - pip.exe install -r requirements.txt - pip.exe install pytest - pip.exe install jsonschema # 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))