forked from rlalik/mlt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
21 lines (21 loc) · 1.53 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
matrix:
include:
- language: c
services:
- docker
before_install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker pull ubuntu:20.04
script:
- docker run -v $PWD:/root -w /root ubuntu:20.04 /bin/sh -c "sed -i -e 's/# deb-src/deb-src/' /etc/apt/sources.list && apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -yqq 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 && cd ../.. && rm -rf src"
- 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 || true
- language: python
python: 3.7
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
before_install: pip install flake8
script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics