summaryrefslogtreecommitdiff
path: root/.ci/appveyor.yml
diff options
context:
space:
mode:
authorElvis Pranskevichus <elvis@magic.io>2018-03-30 19:47:52 -0400
committerElvis Pranskevichus <elvis@magic.io>2018-03-30 20:50:17 -0400
commita1b19e1d10896f3ac2ce0b97c2bf24e0c1c4520f (patch)
tree283ca8f24adc74d1092cf24b7bd66174a0014b51 /.ci/appveyor.yml
parent0e715340a78863d973302981ab98b232d6f51735 (diff)
downloadimmutables-a1b19e1d10896f3ac2ce0b97c2bf24e0c1c4520f.tar.gz
immutables-a1b19e1d10896f3ac2ce0b97c2bf24e0c1c4520f.zip
CI integration
Diffstat (limited to '.ci/appveyor.yml')
-rw-r--r--.ci/appveyor.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.ci/appveyor.yml b/.ci/appveyor.yml
new file mode 100644
index 0000000..318b16b
--- /dev/null
+++ b/.ci/appveyor.yml
@@ -0,0 +1,51 @@
+environment:
+ global:
+ S3_UPLOAD_USERNAME: oss-ci-bot
+ S3_UPLOAD_BUCKET: magicstack-oss-releases
+ S3_UPLOAD_ACCESSKEY:
+ secure: 1vmOqSXq5zDN8UdezZ3H4l0A9LUJiTr7Wuy9whCdffE=
+ S3_UPLOAD_SECRET:
+ secure: XudOvV6WtY9yRoqKahXMswFth8SF1UTnSXws4UBjeqzQUjOx2V2VRvIdpPfiqUKt
+
+ matrix:
+ - PYTHON: "C:\\Python35\\python.exe"
+ - PYTHON: "C:\\Python35-x64\\python.exe"
+ - PYTHON: "C:\\Python36\\python.exe"
+ - PYTHON: "C:\\Python36-x64\\python.exe"
+
+branches:
+ # Avoid building PR branches.
+ only:
+ - master
+ - ci
+ - releases
+
+install:
+ - "%PYTHON% -m pip install --upgrade pip wheel setuptools"
+ - "%PYTHON% -m pip install --upgrade -r .ci/requirements-win.txt"
+
+build_script:
+ - "%PYTHON% setup.py build_ext --inplace"
+
+test_script:
+ - "%PYTHON% setup.py test"
+
+after_test:
+ - "%PYTHON% setup.py bdist_wheel"
+
+artifacts:
+ - path: dist\*
+
+deploy_script:
+ - ps: |
+ if ($env:appveyor_repo_branch -eq 'releases') {
+ $PACKAGE_VERSION = & "$env:PYTHON" ".ci/package-version.py"
+ $PYPI_VERSION = & "$env:PYTHON" ".ci/pypi-check.py" "immutables"
+
+ if ($PACKAGE_VERSION -eq $PYPI_VERSION) {
+ Write-Error "immutables-$PACKAGE_VERSION is already published on PyPI"
+ exit 1
+ }
+
+ & "$env:PYTHON" ".ci/s3-upload.py" dist\*.whl
+ }