-
Notifications
You must be signed in to change notification settings - Fork 112
/
.travis.yml
46 lines (41 loc) · 1.17 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
matrix:
include:
- language: python
env:
- FLASK_APP=app.py
- FLASK_CONFIG=travis
python:
- 3.6
- 3.7
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE test_labellab;'
install:
- pip3 install --upgrade pip
- pip install -r labellab-flask/travis.txt
before_script:
- sleep 10
- cd labellab-flask
script:
- python -m unittest discover tests
- language: node_js
node_js:
- "stable"
services:
- "mongodb"
- "docker"
before_script:
- sleep 15
- mongo mydb_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- docker-compose up --build -d
script:
- cd labellab-server/
- npm install && npm test
- cd ..
- cd labellab-client/
- npm install && npm test
after_script:
- docker-compose down