forked from mechmotum/cyipopt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
68 lines (55 loc) · 2.1 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
environment:
global:
IPOPTWINDIR: "C:\\projects\\cyipopt"
matrix:
- PYTHON: "C:\\Miniconda-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
CONDA_PY: "27"
- PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
CONDA_PY: "36"
- PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
CONDA_PY: "37"
# There is not Miniconda38 on appveyor yet.
- PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.8"
PYTHON_ARCH: "64"
CONDA_PY: "38"
install:
- ECHO "Filesystem root:"
- ps: "ls \"C:/\""
- ECHO "Installed SDKs:"
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
# This upates conda and installs the necessary packages.
- "%PYTHON%\\Scripts\\conda.exe clean --yes --all"
- "%PYTHON%\\Scripts\\conda.exe update --yes conda"
- "%PYTHON%\\Scripts\\conda.exe update --yes --all"
- "%PYTHON%\\Scripts\\conda.exe config --prepend channels conda-forge"
- '%PYTHON%\\Scripts\\conda.exe install --yes python=%PYTHON_VERSION% numpy cython future six setuptools sphinx numpydoc mkl'
- "%PYTHON%\\Scripts\\conda.exe update -y --all"
- "%PYTHON%\\Scripts\\conda.exe info"
- "%PYTHON%\\Scripts\\conda.exe list"
# This downloads and extracts a precomplied IPOPT for Windows.
- ps: Start-FileDownload 'https://www.coin-or.org/download/binary/Ipopt/Ipopt-3.11.0-Win32-Win64-dll.7z'
- 7z x Ipopt-3.11.0-Win32-Win64-dll.7z
- ps: "ls"
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart the
# parent CMD process).
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PYTHON%\\Library\\bin;%PATH%"
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
build: false
test_script:
- "python setup.py install"
- 'python -c "import ipopt"'
- "python test/examplehs071.py"
- "python test/exception_handling.py"
- "python test/lasso.py"
- "conda.exe install --yes scipy"
- "python test/rosen.py"