-
Notifications
You must be signed in to change notification settings - Fork 513
/
.travis.yml.tmpl
41 lines (37 loc) · 1.29 KB
/
.travis.yml.tmpl
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
os: linux
dist: jammy
language: node_js
node_js: node
jobs:
include:
- addons:
chrome: "stable"
firefox: "latest"
apt:
sources:
- sourceline: 'ppa:deadsnakes/ppa'
packages:
- libnss3
- python[[version]]
services:
- xvfb
before_install:
- npm install testem
- ./node_modules/.bin/testem launchers
before_script:
- (cd scripts && python[[version]] make_doc.py)
- (cd scripts && python[[version]] make_dist.py)
script:
# Some day, put back Chrome or "Headless Chrome" as well. For some reason
# as of 2022 Aug 23, the testem websocket connection is sometimes reset,
# which prevents the browser from reporting results to the testem process
# when running on Chrome.
- ./node_modules/.bin/testem --launch Firefox -t www/tests/run_tests.html ci
- language: python
python: '[[version]]'
before_install: pip install --upgrade pip
before_script: pip install flake8
script:
- EXCLUDE=./.*,www/src/Lib,www/tests
# stop the build if there are Python syntax errors or undefined names
- flake8 --builtins=__BRYTHON__ --exclude=$EXCLUDE --select=E9,F63,F7,F82 --show-source --statistics