forked from brython-dev/brython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (38 loc) · 1.38 KB
/
.travis.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
sudo: required
language: javascript
addons:
chrome: stable
firefox: "59.0"
cache:
directories:
- "travis_phantomjs"
matrix:
include:
- language: javascript
- language: python
python: 3.7
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
before_install: pip install --upgrade pip
before_script: pip install flake8
script:
- EXCLUDE=./.*,www/src/Lib/test/badsyntax_3131.py
# stop the build if there are Python syntax errors
- flake8 . --exclude=$EXCLUDE --exit-zero --select=E999 --show-source --statistics
before_install:
- mkdir qunit
- wget -O qunit/qunit-1.18.0.css http://code.jquery.com/qunit/qunit-1.18.0.css
- wget -O qunit/qunit-1.18.0.js http://code.jquery.com/qunit/qunit-1.18.0.js
- nvm install 8
- npm install testem
- ./node_modules/.bin/testem launchers
# A newer version of libnss3 is needed for the latest Chrome version
- sudo apt-get --only-upgrade install libnss3
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# - chmod a+x scripts/ensure_phantomjs.sh
# - scripts/ensure_phantomjs.sh
# - export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
script:
- ./node_modules/.bin/testem --skip PhantomJS,Chromium -t www/tests/qunit/run_tests.html ci
#- phantomjs phantomjs/examples/run-qunit.js www/tests/qunit/run_tests.html