-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
60 lines (51 loc) · 1.73 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
environment:
matrix:
- PYTHON: "C:\\Python34"
nodejs_version: "10"
BROWSER: "Chrome"
- PYTHON: "C:\\Python35"
nodejs_version: "10"
BROWSER: "Firefox"
- PYTHON: "C:\\Python36"
nodejs_version: "10"
BROWSER: "IE"
- PYTHON: "C:\\Python37"
nodejs_version: "12"
BROWSER: "PhantomJS"
matrix:
allow_failures:
- BROWSER: "IE"
- BROWSER: "PhantomJS"
install:
- choco install firefox
- choco install googlechrome
- "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 flake8
# need this to avoid ambiguity later
- pip install -U calmjs.dev calmjs.rjs calmjs.webpack
- pip install -e .[dev,rjs,webpack]
# doing the env in this directory to save build time/bandwidth
- calmjs npm --install nunja.stock[dev,webpack,rjs] -w -D
# out of band installation for IE launcher.
- npm install karma-ie-launcher
- "SET CALMJS_TEST_ENV=."
test_script:
- coverage run -m unittest nunja.stock.tests.make_suite
- coverage report -m --include=src/*
# with RequireJS
- calmjs rjs nunja -w --export-target=nunja.js
- calmjs karma --artifact=nunja.js -c --cover-test --browser=%BROWSER% rjs nunja.stock --sourcepath-method=explicit -w
# with webpack
- calmjs webpack nunja -w --export-target=nunja.webpack.js
- calmjs karma --artifact=nunja.webpack.js -c --cover-test --browser=%BROWSER% webpack nunja.stock --sourcepath-method=explicit -w
# build all artifacts
- calmjs artifact build nunja.stock
# test all artifacts
- calmjs artifact karma --browser=%BROWSER% nunja.stock
artifacts:
- path: dist\*
build: off