Skip to content

Commit

Permalink
update jenkinsfile and dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
imgarylai committed Dec 7, 2018
1 parent c98deb6 commit 0e45dac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM python:3.5.6

COPY ./requirements.txt ./requirements.txt
RUN pip install --user --upgrade pip
RUN pip install --user -r requirements.txt
ADD . /code
WORKDIR /code/
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN pip install pytest
CMD ["pytest"]
ADD . /code
WORKDIR /code
6 changes: 0 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
pipeline {
agent { docker { image 'python:3.5.6' } }
stages {
stage('build') {
steps {
sh 'pip install --user -r requirements.txt'
sh 'pip install pytest'
}
}
stage('test') {
steps {
sh 'python -m pytest'
Expand Down

0 comments on commit 0e45dac

Please sign in to comment.