-
Notifications
You must be signed in to change notification settings - Fork 67
/
appveyor.yml
75 lines (66 loc) · 2.23 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
68
69
70
71
72
73
74
75
build: false
for:
- branches:
only:
- /.*/
environment:
matrix:
- PYTHON: "C:\\Python37"
PYTHONVERSION: 3.7
ARCHITECTURE: "i386"
MINICONDA: "C:\\Miniconda37"
ENERGYPLUS_VERSION: "9.0.1"
ENERGYPLUS_SHA: "bb7ca4f0da"
- PYTHON: "C:\\Python37-x64"
PYTHONVERSION: 3.7
ARCHITECTURE: "x86_64"
MINICONDA: "C:\\Miniconda37-x64"
ENERGYPLUS_VERSION: "9.0.1"
ENERGYPLUS_SHA: "bb7ca4f0da"
-
branches:
only:
- master
environment:
matrix:
- PYTHON: "C:\\Python37"
PYTHONVERSION: 3.7
ARCHITECTURE: "i386"
MINICONDA: "C:\\Miniconda37"
ENERGYPLUS_VERSION: "9.0.1"
ENERGYPLUS_SHA: "bb7ca4f0da"
- PYTHON: "C:\\Python37-x64"
PYTHONVERSION: 3.7
ARCHITECTURE: "x86_64"
MINICONDA: "C:\\Miniconda37-x64"
ENERGYPLUS_VERSION: "9.0.1"
ENERGYPLUS_SHA: "bb7ca4f0da"
install:
# set up Miniconda test environment
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda info -a
- conda update -q conda
- activate
- "conda create -n test-env python=%PYTHONVERSION% pytest lxml"
- "activate test-env"
- ECHO "Filesystem root:"
- ps: "ls \"C:/\""
- ECHO "Installed SDKs:"
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
# install EnergyPlus
- ECHO "Installing EnergyPlus"
- ps: $env:ENERGYPLUS_INSTALL_VERSION = $env:ENERGYPLUS_VERSION -replace '\.','-'
- ps: $env:ENERGYPLUS_DOWNLOAD_BASE_URL = "https://github.com/NREL/EnergyPlus/releases/download/v$env:ENERGYPLUS_VERSION"
- ps: $env:ENERGYPLUS_DOWNLOAD_FILENAME = "EnergyPlus-$env:ENERGYPLUS_VERSION-$env:ENERGYPLUS_SHA-Windows-$env:ARCHITECTURE.exe"
- ps: $env:ENERGYPLUS_DOWNLOAD_URL = "$env:ENERGYPLUS_DOWNLOAD_BASE_URL/$env:ENERGYPLUS_DOWNLOAD_FILENAME"
- ps: "curl $env:ENERGYPLUS_DOWNLOAD_URL -OutFile $env:TMP\\$env:ENERGYPLUS_DOWNLOAD_FILENAME"
- ps: "& $env:TMP\\$env:ENERGYPLUS_DOWNLOAD_FILENAME /S | Out-Null"
- ps: echo $env:PYTHON
# set the integration test environment variable
- "SET EPPY_INTEGRATION=TRUE"
# install eppy
- "python setup.py install"
test_script:
# Test command.
- "python -m pytest ./ -v"