forked from OpenMDAO/OpenMDAO1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
60 lines (51 loc) · 2.56 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
build: false
version: 1.0.{build}
platform:
- x86
- x64
environment:
matrix:
- PYTHON: 2.7
- PYTHON: 3.4
init:
#Uncomment the following line to gain RDP access to an appveyor machine.
#Login info will appear in the console
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- set CONDA=Miniconda
- if "%PYTHON%" == "3.4" (set CONDA=%CONDA%3)
- if "%PLATFORM%" == "x64" (set CONDA=%CONDA%-x64)
- echo %CONDA%
- set PATH=C:\%CONDA%;C:\%CONDA%\Scripts;%PATH%
- conda config --set always_yes yes
# We need to do this first as other commands may not work with older versions of conda.
- conda update conda
- conda install numpy=1.13.1 scipy nose hdf5 h5py sphinx mock pip --quiet
install:
#Grab testflo for running tests, to ensure examples are run
- pip install git+https://github.com/OpenMDAO/testflo.git
#We need to run these two lines to have nmake available for doctests
- cd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC"
- vcvarsall amd64
- ps: |
If ($env:CONDA -eq "Miniconda3-x64") {
If ((Test-Path Env:\MSMPI_BIN)) {throw "error: MSMPI_BIN env var exists. Msmpi already installed before we go to install it."}
If ((Get-Command "mpiexec.exe" -ErrorAction SilentlyContinue) -ne $null) {throw "error: mpiexec.exe already exists before we go to install it"}
If ((Get-Command "mpirun.exe" -ErrorAction SilentlyContinue) -ne $null) {throw "error: mpirun.exe already exists before we go to install it"}
$client = new-object System.Net.WebClient
$client.DownloadFile("http://openmdao.org/dists/MSMpiSetup.exe", "$pwd\MSMpiSetup.exe")
.\MSMpiSetup.exe -unattend -force | Out-Null #pipe to Out-Null in order to block until install is finished
}
#Do these pip installs outside of powershell
- if "%CONDA%" == "Miniconda3-x64" (pip install http://openmdao.org/dists/mpi4py-2.0.0-cp34-none-win_amd64.whl)
- if "%CONDA%" == "Miniconda3-x64" (pip install http://openmdao.org/dists/petsc4py-3.6.0-cp34-none-win_amd64.whl)
#Return back to continue install of OpenMDAO
- cd C:\projects\openmdao*
- pip install -e .
test_script:
- ps: |
If ($env:CONDA -eq "Miniconda3-x64") {
$env:MSMPI_BIN = [System.Environment]::GetEnvironmentVariable("MSMPI_BIN","Machine")
$env:Path = $env:Path + ";" + $env:MSMPI_BIN
If ((Get-Command "mpiexec.exe" -ErrorAction SilentlyContinue) -eq $null) {throw "error: can't find mpiexec.exe after install"}
}
testflo . -n 1