forked from tildaslash/RatticWeb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
47 lines (44 loc) · 1.67 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
language: python
python:
- "2.7"
addons:
firefox: "53.0"
cache:
directories:
- $HOME/.pip-cache/
install:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.16.1/geckodriver-v0.16.1-linux64.tar.gz
- tar zxf geckodriver-v0.16.1-linux64.tar.gz
- sudo mv geckodriver /usr/local/bin
- sudo apt-get -qq update
- sudo apt-get install -y -qq slapd ldap-utils
- sudo apt-get install -y -qq libzbar-dev python-dev
- pip install --upgrade pip
- pip install -r requirements-mysql.txt -r requirements-dev.txt
# - pip install -r requirements-pgsql.txt
before_script:
- pushd docs/ldap; DEBUG=true ./startldap.sh; popd
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- ./runtests.sh --lint-only
- mysql -u root -e 'create database IF NOT EXISTS test_rattic character set utf8 collate utf8_unicode_ci;'
# - psql -c "create database rattic WITH ENCODING 'UTF8' TEMPLATE=template0" -U postgres
script:
- cp docs/travis/local.cfg conf/local.cfg
- python manage.py collectstatic --noinput
- python manage.py makemigrations account cred help ratticweb staff
- python manage.py migrate
- ./runtests.sh --tests-only
- cp docs/travis/ldap.cfg conf/local.cfg
- ./runtests.sh --tests-only
- cp docs/travis/mysql_migration.cfg conf/local.cfg
- python manage.py makemigrations account cred help ratticweb staff
- python manage.py migrate auth
- python manage.py migrate
- cp docs/travis/mysql_test.cfg conf/local.cfg
- REUSE_DB=1 ./runtests.sh --tests-only
# # RatticDB cannot run on PostgreSQL
# - cp docs/travis/pgsql.cfg conf/local.cfg
# - python manage.py makemigrations
# - python manage.py migrate
# - ./runtests.sh --tests-only