forked from wikimedia/wikilabels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (25 loc) · 1 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
dist: xenial
services:
- docker
before_install:
- docker-compose up -d --build
- npm install eslint stylelint stylelint-config-wikimedia
before_script:
- docker-compose exec postgres psql wikilabels -U wikilabels -f /wikilabels/wikilabels/database/schema.sql
- docker-compose exec postgres psql wikilabels -U wikilabels -f /wikilabels/wikilabels/database/schema-testdata.sql
script:
- docker-compose exec wikilabels flake8 /wikilabels --ignore=E722,W504
# - timeout --preserve-status 8s wikilabels dev_server
- ./node_modules/.bin/eslint "wikilabels/wsgi/static/js/**/*.js"
- ./node_modules/.bin/stylelint "wikilabels/wsgi/static/css/*.css"
- docker-compose exec wikilabels py.test --cov=wikilabels -m "not nottravis"
after_success:
- codecov
notifications:
irc:
channels:
- "chat.freenode.net#wikimedia-ai"
on_success: change
on_failure: change
template:
- "%{repository_slug}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} %{build_url}"