forked from rl-institut/offgridders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (43 loc) · 1.03 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
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 coinor-cbc
- pip install -U pip
- python setup.py install
#addons:
# apt:
# update: true
# command to install dependencies
install:
# - pip install -e . #Needs a setup.py, run virtual_machine
- pip install -r requirements.txt
- pip install -r tests/test_requirements.txt
# commands to run tests
script:
- black .
- 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