Skip to content

Commit a523e59

Browse files
committed
Build docker image in travis
1 parent 84ef408 commit a523e59

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
language: python
2+
services: docker
23
python:
34
- 3.4
45
- 3.5
56
- 3.6
67
install:
78
- pip --version
89
- pip install -r test-requirements.txt
9-
- pip install pep8
10+
- pip install pep8
1011
before_script:
1112
- pep8 -v *.py VHostScan/
1213
script:
1314
- pytest
15+
- docker build -t VHostScan .

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN mkdir /app
44

55
ADD . /app
66

7-
RUN apt update; apt install -y python3 python3-pip
7+
RUN apt-get update; apt-get install -y python3 python3-pip
88

99
RUN cd /app && pip3 install -r test-requirements.txt && python3 setup.py install
1010

0 commit comments

Comments
 (0)