Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize .travis.yml, add Python 3.6/Bionic #3218

Merged
merged 1 commit into from
Feb 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 41 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,46 @@
language: cpp
dist: xenial
sudo: required
# Run in default virtualenv, but with access to Python packages
# installed by apt
language: python
virtualenv:
system_site_packages: true
addons:
apt:
sources:
- sourceline: 'ppa:openshot.developers/libopenshot-daily'
packages:
- libopenshot-audio-dev
- libopenshot-dev
- libssl-dev
- python3-openshot
- python3-pip
- python3-setuptools
- python3-pyqt5
- python3-pyqt5.qtmultimedia
- python3-pyqt5.qtopengl
- python3-pyqt5.qtsvg
- python3-pyqt5.qtwebkit
- python3-requests
- python3-xdg
- python3-zmq
- qttranslations5-l10n
- xvfb

before_install:
- sudo add-apt-repository ppa:openshot.developers/libopenshot-daily -y
- sudo apt-get update -qq
- sudo apt-get install gcc-4.8 xvfb tar cmake libopenshot-dev libopenshot-audio-dev libunittest++-dev swig doxygen doxypy libssl-dev python3 python3-dev python3-pip python3-pyqt5 python3-setuptools python3-openshot python3-pyqt5 python3-pyqt5.qtmultimedia python3-pyqt5.qtopengl python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-requests python3-xdg python3-zmq qttranslations5-l10n -y
- sudo apt autoremove -y
- wget https://files.pythonhosted.org/packages/d0/6d/9492644452727094543575de9846af5a2b9c764f760e2d414af7c876618c/cx_Freeze-5.0.1.tar.gz
- tar xf cx_Freeze-5.0.1.tar.gz
- cd cx_Freeze-5.0.1; python3 setup.py build; sudo python3 setup.py install; cd ..;
- pwd
matrix:
include:
- name: "Python 3.5 (Ubuntu 16.04 Xenial)"
os: linux
dist: xenial
python: 3.5
- name: "Python 3.6 (Ubuntu 18.04 Bionic)"
os: linux
dist: bionic
python: 3.6

install:
- pip3 install cx-freeze

script:
- python3 freeze.py build;
- python3 freeze.py build
- xvfb-run --auto-servernum --server-num=1 --server-args "-screen 0 1920x1080x24" python3 src/tests/query_tests.py

notifications:
Expand All @@ -22,4 +49,4 @@ notifications:
env:
global:
- TRAVIS_LIBOPENSHOT=TEST
- LANG="en_US.UTF-8"
- LANG="en_US.UTF-8"