forked from Inter-Actief/alexia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 964 Bytes
/
.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
language: python
# List of Python versions to test
matrix:
fast_finish: true
include:
- python: 3.7
- python: 3.9
# allow_failures:
# - python: 3.9
# Cache pip packages for us so builds are faster
cache: pip
# We want to use MySQL
services:
- mysql
# Create databases before installing alexia
before_install:
- sudo apt-get update
- sudo apt-get install -y xmlsec1
- mysql -e 'CREATE DATABASE alexia_test;'
- mysql -e 'CREATE DATABASE test_alexia_test;'
- mysql -u root -e "GRANT ALL PRIVILEGES ON alexia_test.* to 'travis'@'%';"
- mysql -u root -e "GRANT ALL PRIVILEGES ON test_alexia_test.* to 'travis'@'%';"
- mysql -u root -e "FLUSH PRIVILEGES;"
# Set django settings module in environment variable
env:
global:
- DJANGO_SETTINGS_MODULE=alexia.conf.settings.test
# Install the requirements during installation step
install:
- pip install -r requirements.txt
# command to run tests
script: python manage.py test --keepdb