Debian Codegraph @

appveyor.yml

raw symbols SCIP
1 version: '{build}'
2
3 image:
4 - macos
5 - Visual Studio 2015
6 - Ubuntu2004
7
8 configuration: Release
9
10 platform:
11 - x64
12
13 environment:
14 matrix:
15 - JPY_PYTHON_HOME_WINDOWS: C:\Python34-x64
16 JPY_PYTHON_HOME_UBUNTU: /home/appveyor/venv3.4
17 JPY_MAC_PYTHON_VERSION: 3.4.10
18 # Python 3.4 is incompatible with OpenSSL 1.1, so we have to force the
19 # installation of OpenSSL 1.0 (see https://bugs.python.org/issue31838 ,
20 # https://gist.github.com/souzagab/0ae60e61939d51385de87904b65b2da2 ,
21 # and more detailed comments below).
22 JPY_MAC_OPENSSL_PACKAGE: openssl.rb
23 - JPY_PYTHON_HOME_WINDOWS: C:\Python35-x64
24 JPY_PYTHON_HOME_UBUNTU: /home/appveyor/venv3.5
25 JPY_MAC_PYTHON_VERSION: 3.5.9
26 JPY_MAC_OPENSSL_PACKAGE: [email protected]
27 - JPY_PYTHON_HOME_WINDOWS: C:\Python36-x64
28 JPY_PYTHON_HOME_UBUNTU: /home/appveyor/venv3.6
29 JPY_MAC_PYTHON_VERSION: 3.6.11
30 JPY_MAC_OPENSSL_PACKAGE: [email protected]
31 - JPY_PYTHON_HOME_WINDOWS: C:\Python37-x64
32 JPY_PYTHON_HOME_UBUNTU: /home/appveyor/venv3.7
33 JPY_MAC_PYTHON_VERSION: 3.7.8
34 JPY_MAC_OPENSSL_PACKAGE: [email protected]
35 - JPY_PYTHON_HOME_WINDOWS: C:\Python38-x64
36 JPY_PYTHON_HOME_UBUNTU: /home/appveyor/venv3.8
37 JPY_MAC_PYTHON_VERSION: 3.8.5
38 JPY_MAC_OPENSSL_PACKAGE: [email protected]
39
40 for:
41 -
42 matrix:
43 only:
44 - image: Visual Studio 2015
45 environment:
46 JDK11_X64: C:\Program Files\Java\jdk-11
47 JPY_JDK_HOME: '%JDK11_X64%'
48
49 install:
50 - set JDK_HOME=%JPY_JDK_HOME%
51 # JAVA_HOME is used by Maven
52 - set JAVA_HOME=%JPY_JDK_HOME%
53 - set
54 - call "%JPY_JDK_HOME%\bin\java.exe" -XshowSettings:properties -version
55 - call "%JPY_PYTHON_HOME_WINDOWS%\Scripts\pip.exe" install --upgrade setuptools
56 - call "%JPY_PYTHON_HOME_WINDOWS%\Scripts\pip.exe" install wheel
57 - call "%JPY_PYTHON_HOME_WINDOWS%\Scripts\pip.exe" install psutil
58 - call "%JPY_PYTHON_HOME_WINDOWS%\python.exe" ci\appveyor\dump-dlls.py
59 build_script:
60 - set PATH=%JPY_PYTHON_HOME_WINDOWS%;%JPY_PYTHON_HOME_WINDOWS%\DLLs;%JPY_JDK_HOME%;%JPY_JDK_HOME%\bin;%PATH%
61 - call "%JPY_PYTHON_HOME_WINDOWS%\python.exe" setup.py maven bdist_wheel
62 - move dist win
63 artifacts:
64 - path: 'win\*.whl'
65 name: wheel
66 cache:
67 # see https://www.appveyor.com/docs/build-cache/
68 - '%MAVEN_HOME% -> pom.xml'
69 - '%UserProfile%\.m2 -> pom.xml'
70 -
71 matrix:
72 only:
73 - image: Ubuntu2004
74 environment:
75 JDK11_X64: /usr/lib/jvm/java-11-openjdk-amd64
76 JPY_JDK_HOME: $JDK11_X64
77 install:
78 - set JDK_HOME=$JPY_JDK_HOME
79 # JAVA_HOME is used by Maven
80 - set JAVA_HOME=$JPY_JDK_HOME
81 - $JPY_JDK_HOME/bin/java -XshowSettings:properties -version
82 build_script:
83 - set PATH=$JPY_PYTHON_HOME_UBUNTU/bin:$JPY_JDK_HOME/bin:$PATH
84 - $JPY_PYTHON_HOME_UBUNTU/bin/python setup.py maven bdist_wheel
85 - mv dist linux
86 artifacts:
87 - path: 'linux/*.whl'
88 name: wheel
89 -
90 matrix:
91 only:
92 - image: macos
93 environment:
94 JPY_PYTHON_HOME_MAC: /Users/appveyor/.pyenv/versions/$JPY_MAC_PYTHON_VERSION
95 JDK11_X64: /Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home/
96 JPY_JDK_HOME: $JDK11_X64
97 # See note on deployment targets below.
98 MACOSX_DEPLOYMENT_TARGET: 10.9
99 install:
100 - set JDK_HOME=$JPY_JDK_HOME
101 # JAVA_HOME is used by Maven
102 - set JAVA_HOME=$JPY_JDK_HOME
103 # In contrast to Ubuntu and Windows, the AppVeyor macOS image does not
104 # have Maven preinstalled.
105 - brew install maven
106 - $JPY_JDK_HOME/bin/java -XshowSettings:properties -version
107 # We want to produce a macOS 10.9 wheel that will be compatible with
108 # versions 10.9 and up -- see
109 # https://github.com/MacPython/wiki/wiki/Spinning-wheels . We can't use the
110 # preinstalled Python for this, since we need to set
111 # MACOSX_DEPLOYMENT_TARGET before installing Python. We set
112 # MACOSX_DEPLOYMENT_TARGET in the "environment" section. Then here we
113 # use brew to install pyenv and pyenv to install a 10.9-targeted Python
114 # environment.
115 #
116 - brew update
117 # The Python 3.4 Mac build is particularly challenging, because Python 3.4
118 # is incompatible with OpenSSL 1.1, and OpenSSL 1.0 is no longer supported
119 # by homebrew. We install OpenSSL 1.0 by explicitly fetching the 1.0
120 # formula from an old revision in the homebrew repository and installing
121 # from the downloaded file. Then we set a lot of environment variables to
122 # make sure that pyenv can find the newly installed openssl and uninstall
123 # version 1.1. (For the Python >3.4 builds, OpenSSL 1.1 is then
124 # automatically reinstalled by pyenv.) Most of this configuration can be
125 # removed once we drop Python 3.4 support.
126 #
127 # As of October 2020, "brew install" forbids installation of openssl from
128 # a GitHub commit URL, so we fetch it with curl and install from the file.
129 - curl https://raw.githubusercontent.com/Homebrew/homebrew-core/64555220bfbf4a25598523c2e4d3a232560eaad7/Formula/openssl.rb > openssl.rb
130 # For Python 3.4, $JPY_MAC_OPENSSL_PACKAGE should contain the name of the
131 # downloaded file; for newer Pythons, "[email protected]".
132 - brew install -f $JPY_MAC_OPENSSL_PACKAGE
133 - brew install pyenv
134 - export ssldir=/usr/local/opt/openssl
135 - export PKG_CONFIG_PATH="${ssldir}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
136 - export LDFLAGS="-L${ssldir}/lib"
137 - export LD_LIBRARY_PATH="${ssldir}/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
138 - export CFLAGS="-I${ssldir}/include"
139 - export CPPFLAGS="-I${ssldir}/include"
140 - brew uninstall --ignore-dependencies [email protected]
141 - export PYTHON_CONFIGURE_OPTS="--enable-shared"
142 - pyenv install $JPY_MAC_PYTHON_VERSION
143 # Set pyenv's python as the global Python environment
144 - pyenv global $JPY_MAC_PYTHON_VERSION
145 - /Users/appveyor/.pyenv/versions/$JPY_MAC_PYTHON_VERSION/bin/pip install wheel
146 - set JPY_PYTHON_HOME_MAC=/Users/appveyor/.pyenv/versions/$JPY_MAC_PYTHON_VERSION
147 - ls $JPY_PYTHON_HOME_MAC
148 build_script:
149 - set PATH=$JPY_PYTHON_HOME_MAC/bin:$JPY_JDK_HOME/bin:$PATH
150 - $JPY_PYTHON_HOME_MAC/bin/python setup.py maven bdist_wheel
151 - mv dist osx
152 artifacts:
153 # Apple call their OS "macOS" these days, but this name has to match the
154 # directory name on the FTP server.
155 - path: 'osx/*.whl'
156 name: wheel
157
158 deploy:
159 - provider: FTP
160 protocol: ftp
161 host: ftp.brockmann-consult.de
162 username: jpy
163 password:
164 # See https://www.appveyor.com/docs/build-configuration/#secure-variables
165 secure: AMte8IErI/LRGmLGq4Y5YQ==
166 folder: software
167 debug: true