Skip to content

Commit 0128261

Browse files
committed
restore appveyor file
1 parent 94306a5 commit 0128261

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

appveyor.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,71 @@
1+
# vim ft=yaml
12

3+
os: Visual Studio 2015
4+
5+
environment:
6+
global:
7+
OPENBLAS_COMMIT: c815b8f
8+
OPENBLAS_ROOT: c:\opt
9+
MSYS2_ROOT: c:\msys64
10+
WHEELHOUSE_UPLOADER_USERNAME: travis-worker
11+
WHEELHOUSE_UPLOADER_SECRET:
12+
secure: 9s0gdDGnNnTt7hvyNpn0/ZzOMGPdwPp2SewFTfGzYk7uI+rdAN9rFq2D1gAP4NQh
13+
PYTHON: "C:\\Python27"
14+
15+
# Need for mingw-builds discussed at
16+
# https://github.com/xianyi/OpenBLAS/issues/1503
17+
# Downloads via https://sourceforge.net/projects/mingw-w64/files
18+
# Note spaces instead of %20 in URL, to avoid Windows env var expansion
19+
matrix:
20+
- BUILD_BITS: 64
21+
INTERFACE64: 1
22+
MINGW_URL: "https://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/mingw-builds/7.1.0/threads-posix/seh/x86_64-7.1.0-release-posix-seh-rt_v5-rev0.7z/download"
23+
24+
- BUILD_BITS: 32
25+
MINGW_URL: "https://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win32/Personal Builds/mingw-builds/7.1.0/threads-posix/dwarf/i686-7.1.0-release-posix-dwarf-rt_v5-rev0.7z/download"
26+
27+
- BUILD_BITS: 64
28+
MINGW_URL: "https://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/mingw-builds/7.1.0/threads-posix/seh/x86_64-7.1.0-release-posix-seh-rt_v5-rev0.7z/download"
29+
30+
build_script:
31+
# Build OpenBLAS, build and install the test file
32+
- if "%BUILD_BITS%"=="32" (set PLAT=i686) else (set PLAT=x86_64)
33+
- set VC9_ROOT=C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC
34+
- PATH=%MSYS2_ROOT%\usr\bin;%PATH%
35+
# Get mingw-builds compiler chain, put on path
36+
# Quote for env var to protect spaces.
37+
- curl -L "%MINGW_URL%" -o downloads\mingw_distro.7z
38+
- 7z x downloads\mingw_distro.7z
39+
- PATH=%__CD__%\mingw%BUILD_BITS%\bin;%PATH%
40+
# Remove competing gcc / gfortran
41+
- pacman -Rs --noconfirm gcc gcc-fortran mingw-w64-%PLAT%-toolchain
42+
# zip needed for packing archive
43+
- pacman -Sy --noconfirm zip
44+
- git submodule update --init --recursive
45+
- set MSYSTEM=MINGW%BUILD_BITS%
46+
- set START_DIR=%__CD__%
47+
- set SCRIPT_DIR=%START_DIR%appveyor\
48+
# Need --login to process MSYSTEM variable
49+
- bash --login %SCRIPT_DIR%build_openblas.sh
50+
51+
test_script:
52+
- bash --login %SCRIPT_DIR%build_gfortran.sh
53+
- copy test.exe builds
54+
- copy test_dyn.exe builds
55+
- bash --login -c "$(cygpath $START_DIR)test.exe"
56+
- copy %OPENBLAS_ROOT%\%BUILD_BITS%\bin\*.dll .
57+
- bash --login -c "$(cygpath $START_DIR)test_dyn.exe"
58+
59+
on_finish:
60+
- ps: Get-ChildItem builds\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
61+
62+
on_success:
63+
# Upload the generated package to Rackspace
64+
# On Windows, Apache Libcloud cannot find a standard CA cert bundle so we
65+
# disable the ssl checks.
66+
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
67+
- pip install wheelhouse-uploader
68+
- python -m wheelhouse_uploader upload
69+
--no-ssl-check --local-folder=builds
70+
--no-update-index
71+
wheels

0 commit comments

Comments
 (0)