This repository was archived by the owner on Feb 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathappveyor.yml
More file actions
73 lines (65 loc) · 2.27 KB
/
appveyor.yml
File metadata and controls
73 lines (65 loc) · 2.27 KB
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
environment:
global:
# Remember to edit .travis.yml too
BUILD_COMMIT: de8d32f846d8c9ed3aadd7dc3d91bdca4270d8e5
WHEELHOUSE_UPLOADER_USERNAME: travis-worker
WHEELHOUSE_UPLOADER_SECRET:
secure:
9s0gdDGnNnTt7hvyNpn0/ZzOMGPdwPp2SewFTfGzYk7uI+rdAN9rFq2D1gAP4NQh
matrix:
- PYTHON_VERSION: "3.5"
CONDAPATH: 'C:\Miniconda35'
- PYTHON_VERSION: "3.6"
CONDAPATH: 'C:\Miniconda36'
- PYTHON_VERSION: "3.7"
CONDAPATH: 'C:\Miniconda37'
- PYTHON_VERSION: "3.8"
CONDAPATH: 'C:\Miniconda38'
platform:
- x64
- x86
install:
- git submodule update --init
# activate conda base environment
- if "%PLATFORM%" == "x64" set CONDAPATH=%CONDAPATH%-x64
- call %CONDAPATH%\Scripts\activate
# Check that we have the expected version and architecture for Python
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
# prepare environment with conda
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install -q setuptools pandas pip libpython cython wheel
# mingw64 toolchain to compile python extensions
- conda install -q -c msys2 m2w64-toolchain
build_script:
# Build and install the wheel
- cd pyreadstat
- git fetch origin
- git checkout %BUILD_COMMIT%
# clean dist dir just in case there is something in there
#- del /Q dist\*.*
# set mingw32 as compiler and produce the wheel
- python.exe setup.py config --compiler=mingw32
- python.exe setup.py bdist_wheel
- ps: "ls dist"
- ps: |
# Upload artifact to Appveyor immediately after build
ls dist -r | Foreach-Object {
appveyor PushArtifact $_.FullName
pip install $_.FullName
}
- pip install --pre --no-index --find-links dist/ pyreadstat
test_script:
python.exe tests\test_basic.py
after_test:
# If tests are successful, create binary packages for the project.
- dir dist
on_success:
# Upload the generated wheel package to Rackspace
# On Windows, Apache Libcloud cannot find a standard CA cert bundle so we
# disable the ssl checks.
- pip install wheelhouse-uploader
- python -m wheelhouse_uploader upload
--local-folder=dist --no-update-index
wheels