forked from holland-backup/holland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.08 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
---
language: python
matrix:
include:
- os: linux
dist: xenial
sudo: required
python: 3.7
- os: linux
sudo: required
python: 3.6
- os: linux
sudo: required
python: 2.7
- os: linux
sudo: required
python: 2.6
services:
- mysql
- mongodb
- postgresql
before_install:
- wget https://repo.percona.com/apt/percona-release_0.1-6.$(lsb_release -sc)_all.deb
- sudo dpkg -i percona-release_0.1-6.$(lsb_release -sc)_all.deb
- sudo apt-get update
- sudo apt-get install percona-xtrabackup-24
install:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install mysqlclient==1.3.13; else pip install mysqlclient; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then travis_retry pip install mock; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then travis_retry pip install mock; fi
- python setup.py install
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then pip install pylint; fi
before_script:
- mongo mydb_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
script:
- sudo ./scripts/travis_ci.sh