-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
49 lines (49 loc) · 1.47 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
48
49
# ---------------------------------
# Globals / defaults
dist: xenial
os: linux
addons:
apt:
sources:
- docker-xenial
services:
- mysql
install:
- virtualenv venv/
- source venv/bin/activate
- pip install --upgrade setuptools
- pip install -r ojd_daps/requirements.txt
before_script:
- export PYTHONPATH=$PWD
- rm -r ojd_daps/config/*
# NB: If you want any config for Travis, then make it yourself here:
- echo -e "[mysqldb]\nuser=travis" > ojd_daps/config/mysqldb.config
- echo -e "dummy" > ojd_daps/config/extract.yaml # dummy
- 'mkdir -p $HOME/.metaflowconfig && echo "{\"METAFLOW_DATASTORE_SYSROOT_S3\":\"s3://open-jobs-lake/metaflow\",\"METAFLOW_DATATOOLS_SYSROOT_S3\": \"s3://open-jobs-lake/metaflow/data\"}" > $HOME/.metaflowconfig/config.json'
- cat $HOME/.metaflowconfig/config.json
- sudo rm -f /etc/boto.cfg
- mysql -e 'CREATE DATABASE tests;'
- mysql_upgrade -u root --force
- sudo service mysql restart
branches:
only:
- dev
# ---------------------------------
# Specify job grid
jobs:
include:
# ---------------------------------
- name: Flow tests (Linux)
language: python
python: 3.7
script: .travis/flows.sh
# ---------------------------------
- name: Tasks and ORM tests (Linux)
language: python
python: 3.7
script: .travis/other.sh
# ---------------------------------
- name: data_getter tests (Linux)
language: python
python: 3.7
script: .travis/dqa.sh