forked from lektor/lektor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
77 lines (65 loc) · 1.83 KB
/
appveyor.yml
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
74
75
76
77
# https://ci.appveyor.com/project/lektor/lektor
matrix:
fast_finish: true
branches:
only:
- master
# Cache imagemagick
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
environment:
matrix:
# Node 6
- PYTHON: "C:\\Python27"
NODE_JS_VERSION: "6"
- PYTHON: "C:\\Python35"
NODE_JS_VERSION: "6"
- PYTHON: "C:\\Python36"
NODE_JS_VERSION: "6"
# Node 7 is End-of-Life
# Node 8
- PYTHON: "C:\\Python27"
NODE_JS_VERSION: "8"
- PYTHON: "C:\\Python35"
NODE_JS_VERSION: "8"
- PYTHON: "C:\\Python36"
NODE_JS_VERSION: "8"
# Node 9
- PYTHON: "C:\\Python27"
NODE_JS_VERSION: "9"
- PYTHON: "C:\\Python35"
NODE_JS_VERSION: "9"
- PYTHON: "C:\\Python36"
NODE_JS_VERSION: "9"
install:
# some tests require imagemagick
- choco install --timeout 600 imagemagick.tool || true
# Install lektor, dependencies and test package requirements
- "%PYTHON%\\python.exe -m pip install --upgrade pytest"
- "%PYTHON%\\python.exe -m pip install --upgrade codecov"
- "%PYTHON%\\python.exe -m pip install --editable .[test]"
# Get the latest stable version of Node.js
- ps: Install-Product node $env:NODE_JS_VERSION
# Install node modules
- cd lektor\admin
- npm install .
- npm run webpack
- cd ..
- cd ..
# Not a .NET project
build: false
test_script:
# Run Python tests
- "%PYTHON%\\python.exe --version"
- "%PYTHON%\\python.exe -m pip list"
- "%PYTHON%\\Scripts\\pytest.exe . --tb=long -svv --cov=lektor"
# Run JS tests
- cd lektor\admin
- node --version
- npm --version
- npm list
- npm run lint
- npm test
# on_failure:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))