Browse code

MAINT: Add appveyor for testing on windows

Mark Harfouche authored on 23/09/2018 16:03:47
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,37 @@
1
+environment:
2
+  matrix:
3
+    - PYTHON: C:\Python35-x64
4
+    - PYTHON: C:\Python36
5
+    - PYTHON: C:\Python36-x64
6
+    - PYTHON: C:\Python37
7
+    - PYTHON: C:\Python37-x64
8
+matrix:
9
+  fast_finish: true
10
+install:
11
+  - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
12
+  # Git won't let us do anything without this.
13
+  - git config --global user.email "you@example.com"
14
+  - git config --global user.name "Your Name"
15
+  - "python --version"
16
+  - cd ..
17
+  - git init my_package
18
+  - cd my_package
19
+  - python ../miniver/ci/create_package.py
20
+  - git add .
21
+  - git commit -m "Initialization of package"
22
+  - git tag -a 0.0.0 -m "First version for miniver"
23
+  - pip install -e .
24
+
25
+# Not a .NET project
26
+build: false
27
+
28
+test_script:
29
+  - python -c "import my_package; assert my_package.__version__ == '0.0.0'
30
+  - cd ../my_package
31
+  - "echo # Extra comment >> setup.py"
32
+  - python -c "import my_package; assert my_package.__version__.endswith('dirty')"
33
+  - python -c "import my_package; assert my_package.__version__.startswith('0.0.0')"
34
+  - git commit -a -m "new comment"
35
+  - python -c "import my_package; assert my_package.__version__.startswith('0.0.0.dev1')"
36
+  - git tag -a 0.0.1 -m "0.0.1"
37
+  - python -c "import my_package; assert my_package.__version__ == '0.0.1'"