forked from Linaro/squad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (50 loc) · 1.58 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
54
55
56
dist: bionic
language: python
python:
- 3.6
cache: pip
addons:
postgresql: 9.5
apt:
packages:
- bc
- chromium-browser
- snakefood
- software-properties-common
services:
- docker
env:
- SCRIPT=./scripts/travis TESTENV=travis-postgresql DATABASE=ENGINE=django.db.backends.postgresql_psycopg2:NAME=squad:USER=postgres:PASSWORD=squad:HOST=127.0.0.1:PORT=5432 INSTALLPIP=yes START_LAVA=yes
- SCRIPT=./scripts/travis TESTENV=travis-sqlite3 DATABASE= SQUAD_EXCLUDE_TEST_TAGS=skip_sqlite INSTALLPIP=yes START_LAVA=yes
- SCRIPT="./scripts/check-ignore"
- SCRIPT="./dev-docker ./manage.py test -v 3"
- SCRIPT="./scripts/test-docker"
- SCRIPT="./manage.py compilemessages" INSTALLPIP=yes
- SCRIPT="docker run -v $(pwd):/squad --workdir /squad fsfe/reuse lint"
- SCRIPT="./scripts/pytest" DATABASE=ENGINE=django.db.backends.postgresql_psycopg2:NAME=squad:USER=postgres:PASSWORD=squad:HOST=127.0.0.1:PORT=5432 INSTALLPIP=yes
before_install:
- if test -n "$DATABASE"; then ./scripts/travis-postgresql; fi
before_script:
- if test -n "$START_LAVA"; then ./scripts/travis-lava; fi
after_script:
- if test -n "$START_LAVA"; then ./scripts/travis-lava -s; fi
install:
- |
if test "$INSTALLPIP" = "yes"; then
pip install --upgrade setuptools
pip install -r requirements-dev.txt
pip freeze
sudo apt-get install nodejs npm
npm install
fi
script:
- $SCRIPT
notifications:
email:
on_success: change
on_failure: change
irc:
on_success: change
on_failure: change
channels:
- "chat.freenode.net#linaro-qa"