Skip to content

Commit

Permalink
Docker and then run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthHater committed May 28, 2020
1 parent ba819f5 commit f512a94
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,18 @@

FROM docker-all.repo.sonatype.com/python:3.7-alpine

COPY requirements.txt ./
RUN PATH=$WORKSPACE/.venv/bin:$PATH

COPY .circleci/ci-run.sh ./
RUN python3 --version

COPY .circleci/ci-setup.sh ./
RUN python3 -m venv .venv

RUN source .venv/bin/activate

RUN pip3 install python-semantic-release

RUN pip3 install -r requirements.txt

RUN pip3 install pylint

RUN pip3 install unittest-xml-reporting
3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
dockerizedBuildPipeline(
buildAndTest: {
sh '''
./.circleci/ci-setup.sh
./.circleci/ci-run.sh
python -m xmlrunner discover -o test-results/
'''
},
onSuccess: {
Expand Down

0 comments on commit f512a94

Please sign in to comment.