forked from kensho-technologies/graphql-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
39 lines (39 loc) · 1001 Bytes
/
.travis.yml
File metadata and controls
39 lines (39 loc) · 1001 Bytes
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
language: python
cache: pip
dist: xenial
services:
- docker
addons:
apt:
packages:
- python-mysqldb
install:
- pip install --upgrade pip
- pip install --upgrade setuptools pipenv
- ./scripts/use_appropriate_lockfile.sh
- pipenv install --dev --deploy --system
- pipenv install --system --skip-lock -e .
before_script:
- docker-compose up -d
matrix:
include:
- name: "Lint and static analysis"
python: "3.6"
script:
- pipenv run ./scripts/copyright_line_check.sh
- pipenv run ./scripts/lint.sh
- name: "Python 2.7 unit tests"
python: "2.7"
script:
- pipenv run py.test --cov=graphql_compiler graphql_compiler/tests
- name: "Python 3.6 unit tests"
python: "3.6"
script:
- pipenv run py.test --cov=graphql_compiler graphql_compiler/tests
- name: "Python 3.7 unit tests"
python: "3.7"
script:
- pipenv run py.test --cov=graphql_compiler graphql_compiler/tests
after_success:
- docker-compose down
- coveralls