-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
66 lines (66 loc) · 1.51 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: python
os: linux
dist: bionic
python: 3.7
env:
global:
- COOKIECUTTER_REPO_DIR=..
- COOKIECUTTER_REPO_SLUG=test_repo
jobs:
include:
- name: "docker-compose-build"
if: branch NOT IN (master, dev) # already covered by docker-compose-test
services: docker
script: make build
- name: "docker-compose-test"
if: branch IN (master, dev)
services: docker
script:
- make test
after_script:
- ls -la ./data/ # mlflow artifact & tracking data
- name: "tox"
env: TOX_PYTHON_ENV=py37
install:
- pip install tox-travis
- pip install codecov
script:
- tox -e $TOX_PYTHON_ENV -e lint
after_success:
- codecov # submit coverage to https://codecov.io/gh/sertansenturk/cookiecutter-ds-docker/
- name: "documentation"
before_install:
- pwd
- ls -la
- id
- docker --version
# skip pip install steps
install:
- pip install sphinx
- pip install sphinx_rtd_theme
before_script:
- cd docs
script:
- make html SPHINXOPTS:="-nWT -b dummy"
before_install:
- pwd
- ls -la
- id
- docker --version
- pip install -U pip
- pip install cookiecutter
install:
-
before_script:
- >-
cookiecutter ./ \
--no-input \
--output-dir $COOKIECUTTER_REPO_DIR \
repo_slug=$COOKIECUTTER_REPO_SLUG
- cd $COOKIECUTTER_REPO_DIR/$COOKIECUTTER_REPO_SLUG
script:
-
after_success:
-
after_script:
-