From 4adae65625fd9fd9458f0a33079d57d89dd1e4d9 Mon Sep 17 00:00:00 2001 From: Rafael Hautekiet Date: Sun, 19 Aug 2018 13:44:28 +0200 Subject: [PATCH] Added appveyor CI for windows builds --- appveyor.yml | 20 ++++++++++++++++++++ openctm/version.py | 2 +- travis/build-openctm-win.sh | 6 ++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 appveyor.yml create mode 100644 travis/build-openctm-win.sh diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..79d1089 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,20 @@ +environment: + global: + CIBW_TEST_REQUIRES: nose + CIBW_TEST_COMMAND: "nosetests {project}\\tests" + TWINE_USERNAME=lejafar + # Note: TWINE_PASSWORD is set in Appveyor settings + +build_script: + - bash travis/build-openctm-win.sh + - pip install cibuildwheel==0.9.4 + - touch stub.cc + - cibuildwheel --output-dir wheelhouse + - ps: >- + if ($env:APPVEYOR_REPO_TAG -eq "true") { + python -m pip install twine + python -m twine upload (resolve-path wheelhouse\*.whl) + } +artifacts: + - path: "wheelhouse\\*.whl" + name: Wheels \ No newline at end of file diff --git a/openctm/version.py b/openctm/version.py index d163f47..baa4a76 100644 --- a/openctm/version.py +++ b/openctm/version.py @@ -1 +1 @@ -__version__ = '1.0.6' \ No newline at end of file +__version__ = '1.0.0rc0' \ No newline at end of file diff --git a/travis/build-openctm-win.sh b/travis/build-openctm-win.sh new file mode 100644 index 0000000..8075108 --- /dev/null +++ b/travis/build-openctm-win.sh @@ -0,0 +1,6 @@ +# ./build-openctm-win.sh + +git clone https://github.com/Danny02/OpenCTM.git openctm_tmp +mingw32-make -f Makefile.mingw +mkdir openctm/libs +mv openctm_tmp/lib/libopenctm.dll openctm/libs