Skip to content

Commit b6bc919

Browse files
committed
add travis files
1 parent 3f5982a commit b6bc919

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: python
2+
matrix:
3+
include:
4+
- env: TARGET=py3
5+
- env: TARGET=pep8
6+
- env: TARGET=mypy
7+
allow_failures:
8+
- env: TARGET=pep8
9+
- env: TARGET=mypy
10+
sudo: required
11+
services:
12+
- docker
13+
install:
14+
- true
15+
script:
16+
- docker build . -f .travis/${TARGET}.docker

.travis/mypy.docker

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM kernsuite/base:5
2+
RUN docker-apt-install python3-pip
3+
RUN pip3 install mypy
4+
ADD . /code
5+
WORKDIR /code
6+
RUN mypy --ignore-missing-imports cwl_utils

.travis/pep8.docker

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM kernsuite/base:5
2+
RUN docker-apt-install python3-pip
3+
RUN pip3 install pycodestyle
4+
ADD . /code
5+
WORKDIR /code
6+
RUN pycodestyle cwl_utils

.travis/py3.docker

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM kernsuite/base:5
2+
RUN docker-apt-install python3-pip
3+
ADD . /code
4+
WORKDIR /code
5+
RUN pip3 install .

0 commit comments

Comments
 (0)