Skip to content

Commit

Permalink
move docker publish to after_success
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Apr 30, 2020
1 parent b6a8771 commit 2555f2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ matrix:
script:
- docker run -v $PWD:/root -w /root ubuntu:16.04 /bin/sh -c "sed -i -e 's/# deb-src/deb-src/' /etc/apt/sources.list && apt-get -qq update && apt-get -y build-dep melt && apt-get -y install qt5-default locales && ./configure --prefix=/usr --enable-gpl --enable-gpl3 --enable-lumas && make -j && make install && cd src/tests && qmake tests.pro && make -j && echo de_DE.UTF-8 UTF-8 >> /etc/locale.gen && locale-gen && for test in \$(find . -type f -name 'test_*' -executable); do \$test; done"
- docker build -t mltframework/melt:latest .
after_success:
- test "$TRAVIS_REPO_SLUG" = "mltframework/mlt" -a $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "master" && echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- test "$TRAVIS_REPO_SLUG" = "mltframework/mlt" -a $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "master" && docker push mltframework/melt
- language: python
Expand Down

0 comments on commit 2555f2d

Please sign in to comment.