- add appveyor Signed-off-by: SSE4 <tomskside@gmail.com>
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
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..f7ee32f
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,21 @@
+build: false
+
+environment:
+ PYTHON: "C:\\Python37"
+
+ matrix:
+ - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
+ CMAKE_GENERATOR: Visual Studio 12 2013
+ - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
+ CMAKE_GENERATOR: Visual Studio 12 2013 Win64
+ - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
+ CMAKE_GENERATOR: Visual Studio 14 2015
+ - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
+ CMAKE_GENERATOR: Visual Studio 14 2015 Win64
+ - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
+ CMAKE_GENERATOR: Visual Studio 15 2017
+ - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
+ CMAKE_GENERATOR: Visual Studio 15 2017 Win64
+
+test_script:
+ python build.py
diff --git a/build.py b/build.py
new file mode 100644
index 0000000..71877c9
--- /dev/null
+++ b/build.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
+
+import os
+
+def main():
+ generator = os.environ["CMAKE_GENERATOR"]
+ os.system("cmake -G %s" % generator)
+ os.system("cmake --build . --config Release")
+
+if __name__ == '__main__':
+ main()