Skip to content

Commit

Permalink
PR CI should cover container image build [RHELDST-2973]
Browse files Browse the repository at this point in the history
Add image build by using docker in travis-ci.
  • Loading branch information
dichn committed Sep 14, 2020
1 parent 09a2cb3 commit 848b665
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@ language: python

install: pip install tox

services:
- docker

jobs:
include:
- stage: build docker image
script:
- docker --version
- docker build . -f openshift/containers/exodus-gw/Dockerfile
- python: "3.6"
env: TOX_ENV=cov-travis
- python: "3.6"
env: TOX_ENV=static
- python: "3.6"
env: TOX_ENV=docs

script: tox -e $TOX_ENV
script:
- tox -e $TOX_ENV

after_success:
- test $TOX_ENV = docs && scripts/push-docs
- test $TOX_ENV = docs && scripts/push-docs

0 comments on commit 848b665

Please sign in to comment.