Skip to content

Commit

Permalink
allow multiple python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Dec 28, 2018
1 parent dee1323 commit d4c3498
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
sudo: required
services:
- docker
addons:
apt_packages:
- pandoc
language: python
python:
- 3.6
matrix:
include:
- python: 3.6
env: TESTS=pytest
- python: 3.7
env: TESTS=pytest
- python: 3.6
env: TESTS=sphinx
- python: 3.6
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM python:3.6-stretch
ARG PYTHON

FROM python:${PYTHON}-stretch

RUN apt-get update && apt-get install -y pandoc

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
build:
context: .
dockerfile: Dockerfile.tests
args:
PYTHON: ${PYTHON}
dev1.group_1:
image: dbarroso/stupid_ssh_container
ports:
Expand Down

0 comments on commit d4c3498

Please sign in to comment.