generated from rl-institut/rli_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (42 loc) · 985 Bytes
/
.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
dist: xenial # required for Python >= 3.7
language: python
python:
- '3.6'
# To install packages which are not on pip
#before_install:
# - sudo apt-get install ...
#addons:
# apt:
# update: true
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -r tests/test_requirements.txt
# commands to run tests
script:
- flake8
- pylint */*.py
- black --check . --exclude docs/
- pytest tests
#jobs:
# include:
# - stage: "Tests" # naming the Tests stage
# name: "Linting Tests" # names the first Tests stage job
# script: flake8
# script: pylint
# for later stages
# - script: ./integration-tests
# name: "Integration Tests" # names the second Tests stage job
# - stage: deploy
# name: "Deploy to GCP"
# script: ./deploy
# blocklist
#branches:
# except:
# - branch_name1
# - branch_name2
# safelist
#branches:
# only:
# - branch_name1
# - branch_name2