-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
53 lines (52 loc) · 1.45 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
46
47
48
49
50
51
52
53
_python_job: &python_job
language: python
env:
- DJANGO_SETTINGS_MODULE=workbench.settings
MOZ_HEADLESS=1
install:
- "pip install -r requirements/base.txt"
- "pip install -r requirements/test.txt"
- "pip install -r $VIRTUAL_ENV/src/xblock-sdk/requirements/base.txt"
- "pip install -r $VIRTUAL_ENV/src/xblock-sdk/requirements/test.txt"
- "pip install -e ."
- "pip install 'selenium<3'" # xblock-sdk installs a newer version but we still need 2.x
script:
- pycodestyle group_project_v2 tests
- pylint group_project_v2 --rcfile=pylintrc
- pylint tests --rcfile=tests/pylintrc
- mkdir var
- touch workbench.log
- xvfb-run pytest
- isort --check-only --diff --recursive tests group_project_v2 *.py
addons:
firefox: "43.0"
cache:
pip: true
jobs:
include:
- name: Python 3.5 (Juniper) Tests
python:
- "3.5"
<<: *python_job
- name: Python 3.8 (Koa) Tests
python:
- "3.8"
<<: *python_job
- name: Javascript Tests
language: node_js
node_js:
- "lts/*"
env:
- MOZ_HEADLESS=1
install:
- npm install
script:
- ./node_modules/jshint/bin/jshint group_project_v2 tests
- xvfb-run ./node_modules/.bin/karma start tests/js/karma.conf.js --single-run
- cat coverage/js/karma_coverage.txt
addons:
firefox: "43.0"
cache:
npm: true
notifications:
email: false