-
Notifications
You must be signed in to change notification settings - Fork 46
/
.travis.yml
38 lines (38 loc) · 1.01 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
language: python
sudo: false
matrix:
include:
- python: 3.7
dist: xenial
branches:
only:
- master
- production
services:
- mysql
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n qmpy-test-env python=$TRAVIS_PYTHON_VERSION
- source activate qmpy-test-env
install:
- conda install --yes atlas numpy
- "python setup.py install"
before_script:
- export qmdb_v1_1_name="qmdb_dev"
- export qmdb_v1_1_user="root"
- export qmdb_v1_1_pswd=""
- export qmdb_v1_1_host=""
- export qmdb_v1_1_port=""
- export web_port="0000"
- mysql -e 'create database qmdb_dev;'
script:
- cd qmpy/db
- python manage.py makemigrations auth qmpy contenttypes sites
- python manage.py migrate
- python manage.py test qmpy