forked from OpenMDAO/OpenMDAO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
120 lines (98 loc) · 3.69 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
build: off
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Previous Ubuntu
PYTHON: 3.7
NUMPY: 1.15
SCIPY: 1.0.1
PETSc: 3.9.1
- APPVEYOR_BUILD_WORKER_IMAGE: Previous Ubuntu
PYTHON: 3.6
NUMPY: 1.15
SCIPY: 1.0.1
PETSc: 3.9.1
- APPVEYOR_BUILD_WORKER_IMAGE: Previous Ubuntu
PYTHON: 2.7
NUMPY: 1.15
SCIPY: 1.0.1
# PETSc: 3.9.1
- APPVEYOR_BUILD_WORKER_IMAGE: Previous Visual Studio 2017
PYTHON: 2.7
# MKL: 2018.0.2 # Math Kernel Library
NUMPY: 1.15
SCIPY: 1.0.1
- APPVEYOR_BUILD_WORKER_IMAGE: Previous Visual Studio 2017
PYTHON: 3.7
# MKL: 2018.0.2 # Math Kernel Library
NUMPY: 1.15
SCIPY: 1.1
encrypted_74d70a284b7d_key:
secure: 7u/kPupG0BmwqAJOLeyGMPakwj3lqukKHXsxEP4+6aX+Huu8VH2ZkDNq6GYlaw6HGJHi2JTAal9VDgOpZc9RMlweOrXJiNFWS3Iu0chy+L4=
encrypted_74d70a284b7d_iv:
secure: ZvlRNZ0mVCgCzlscRSABvE8CJUdCU2oAE5AucD0GHz3iGWasTe7k6bBswulzhn18
SNOPT_LOCATION:
secure: BMuN2XRyyMclCtx+SGQCMNgbtSplR5GnBKRZVvotqd1SO6aNpMyh+Hqv+23+vBMFcN7te93hDiAE5+joj4R+H4sGGyeRb+khsu/sILHZaLQ=
install:
- sh:
if [ "$encrypted_74d70a284b7d_key" ]; then
openssl aes-256-cbc -K $encrypted_74d70a284b7d_key -iv $encrypted_74d70a284b7d_iv -in travis_deploy_rsa.enc -out /tmp/travis_deploy_rsa -d;
eval "$(ssh-agent -s)";
chmod 600 /tmp/travis_deploy_rsa;
ssh-add /tmp/travis_deploy_rsa;
echo -e "Host web543.webfaction.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config;
fi
sudo add-apt-repository ppa:ubuntu-toolchain-r/test;
sudo apt-get update;
sudo apt-get -y install gfortran;
sudo apt-get -y install libblas-dev;
sudo apt-get -y install liblapack-dev;
sudo apt-get -y install libopenmpi-dev;
sudo apt-get -y install openmpi-bin;
echo ">>> Building python environment";
echo " >> Installing conda";
echo " > Downloading miniconda";
wget "https://repo.continuum.io/miniconda/Miniconda${PYTHON:0:1}-4.5.11-Linux-x86_64.sh" -O miniconda.sh;
chmod +x miniconda.sh;
echo " > Installing miniconda";
./miniconda.sh -b -p $HOME/miniconda;
export PATH=$HOME/miniconda/bin:$PATH;
echo " >> Creating conda environment";
conda create --yes -n PY$PYTHON python=$PYTHON;
source $HOME/miniconda/bin/activate PY$PYTHON;
echo " >> Installing non-pure Python dependencies from conda";
conda install --yes numpy=$NUMPY scipy=$SCIPY cython swig;
pip install --upgrade pip;
echo " >> Installing forked python packages";
pip install git+https://github.com/swryan/coveralls-python@work;
echo " >> Installing pyOptSparse";
echo " > Cloning pyOptSparse from OpenMDAO's fork";
git clone https://github.com/OpenMDAO/pyoptsparse.git;
cd pyoptsparse;
if [ "$SNOPT_LOCATION" ] && [ "${PYTHON:0:1}" = "3" ]; then
cd pyoptsparse/pySNOPT;
echo " > Secure copying SNOPT over SSH";
scp -r "$SNOPT_LOCATION" ./source;
cd ../..;
fi
echo " > Install pyOptSparse";
python setup.py install;
cd ..;
if [ "$PETSc" ]; then
echo " >> Installing parallel processing dependencies";
pip install mpi4py;
pip install petsc4py==$PETSc;
fi
echo ">>> Installing OpenMDAO";
pip install .[all];
conda list;
- cmd: if %PYTHON% GTR 3 (set CONDA="C:\\Miniconda3%PYTHON:~2%-x64") else (set CONDA="C:\\Miniconda-x64")
- cmd: set PATH=%CONDA%;%CONDA%\Scripts;%PATH%
- cmd: conda config --set always_yes yes
- cmd: conda update conda
- cmd: conda install python=%PYTHON% numpy=%NUMPY% scipy=%SCIPY% pip --quiet
- cmd: cd C:\projects\blue*
- cmd: pip install -e .[all]
- cmd: conda list
test_script:
- sh: testflo . -n 1;
- cmd: testflo . -n 1