-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
77 lines (66 loc) · 2.38 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
environment:
matrix:
# Commenting out due to setuptools on Appveyor for Python 2 is
# updated beyond the final Python 2 supported version.
# - PYTHON: "C:\\Python27"
# nodejs_version: "10"
# BROWSER: "PhantomJS"
# Not supported again it seems?
# - PYTHON: "C:\\Python34"
# nodejs_version: "10"
# BROWSER: "PhantomJS"
# - PYTHON: "C:\\Python35"
# nodejs_version: "10"
# BROWSER: "Firefox"
- PYTHON: "C:\\Python36"
nodejs_version: "10"
BROWSER: "Firefox"
- PYTHON: "C:\\Python37"
nodejs_version: "12"
BROWSER: "IE"
- PYTHON: "C:\\Python38"
nodejs_version: "12"
BROWSER: "PhantomJS"
matrix:
allow_failures:
- BROWSER: "IE"
install:
- choco install firefox
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- ps: Install-Product node $env:nodejs_version
- pip install virtualenv
- virtualenv --clear venv
- "venv\\Scripts\\activate.bat"
- pip install coverage
- pip install -e .[dev,rjs,webpack]
# doing the env in this directory to save build time/bandwidth
- calmjs npm --install nunja[dev,rjs,webpack] -w -D
# also manually install the MSIE launcher.
- npm install karma-ie-launcher
- "SET CALMJS_TEST_ENV=."
test_script:
- coverage run -m unittest nunja.tests.make_suite
- coverage report -m -i
# The standard style tests, though we need the additional source
# registries from nunja.mold.testing so that those templates there
# will be bundled into the artifact.
# RequireJS
- calmjs karma -T -c --cover-test --browser=%BROWSER%
rjs -w
nunja --source-registries=calmjs.module,nunja.mold,nunja.mold.testing
# Webpack
- calmjs karma -T -c --cover-test --browser=%BROWSER%
webpack -w
nunja --source-registries=calmjs.module,nunja.mold,nunja.mold.testing
# This test using the RequireJS build toolchain which include tests
# against the path that make heavy use of the async mold/template
# loading feature; note the inclusion of the nunja.mold.testing as
# a test registry to only make those names available. This was the
# original test suite developed as part of the initial development
# during mid-2016.
- calmjs karma -T -c --cover-test --browser=%BROWSER%
--test-registry=calmjs.module.tests,nunja.rjs.tests,nunja.mold.testing
rjs nunja --optional-advice=nunja[raw]
artifacts:
- path: dist\*
build: off