forked from lektor/lektor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
64 lines (55 loc) · 1.49 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
# https://ci.appveyor.com/project/lektor/lektor
matrix:
fast_finish: true
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
- PYTHON: "C:\\Python27"
NODE_JS_VERSION: "7"
- PYTHON: "C:\\Python35"
NODE_JS_VERSION: "7"
- PYTHON: "C:\\Python36"
NODE_JS_VERSION: "7"
# Node 8
- PYTHON: "C:\\Python27"
NODE_JS_VERSION: "8"
- PYTHON: "C:\\Python35"
NODE_JS_VERSION: "8"
- PYTHON: "C:\\Python36"
NODE_JS_VERSION: "8"
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 or io.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=short -v --cov=lektor"
# Run JS tests
- cd lektor\admin
- node --version
- npm --version
- npm list
- npm run lint
- npm test