Skip to content

Commit a56d8bc

Browse files
authored
Modernize .travis.yml, add Python 3.6/Bionic (#3218)
Upgrade the Travis YAML control file to: - Use the 'language: python' test environment - Install deps with the Travis apt plugin, instead of sudo - Install cx_Freeze with pip3, rather than from a URL - Add a Python 3.6 test build, running on Bionic
1 parent da851d1 commit a56d8bc

File tree

1 file changed

+41
-14
lines changed

1 file changed

+41
-14
lines changed

.travis.yml

+41-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,46 @@
1-
language: cpp
2-
dist: xenial
3-
sudo: required
1+
# Run in default virtualenv, but with access to Python packages
2+
# installed by apt
3+
language: python
4+
virtualenv:
5+
system_site_packages: true
6+
addons:
7+
apt:
8+
sources:
9+
- sourceline: 'ppa:openshot.developers/libopenshot-daily'
10+
packages:
11+
- libopenshot-audio-dev
12+
- libopenshot-dev
13+
- libssl-dev
14+
- python3-openshot
15+
- python3-pip
16+
- python3-setuptools
17+
- python3-pyqt5
18+
- python3-pyqt5.qtmultimedia
19+
- python3-pyqt5.qtopengl
20+
- python3-pyqt5.qtsvg
21+
- python3-pyqt5.qtwebkit
22+
- python3-requests
23+
- python3-xdg
24+
- python3-zmq
25+
- qttranslations5-l10n
26+
- xvfb
427

5-
before_install:
6-
- sudo add-apt-repository ppa:openshot.developers/libopenshot-daily -y
7-
- sudo apt-get update -qq
8-
- 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
9-
- sudo apt autoremove -y
10-
- wget https://files.pythonhosted.org/packages/d0/6d/9492644452727094543575de9846af5a2b9c764f760e2d414af7c876618c/cx_Freeze-5.0.1.tar.gz
11-
- tar xf cx_Freeze-5.0.1.tar.gz
12-
- cd cx_Freeze-5.0.1; python3 setup.py build; sudo python3 setup.py install; cd ..;
13-
- pwd
28+
matrix:
29+
include:
30+
- name: "Python 3.5 (Ubuntu 16.04 Xenial)"
31+
os: linux
32+
dist: xenial
33+
python: 3.5
34+
- name: "Python 3.6 (Ubuntu 18.04 Bionic)"
35+
os: linux
36+
dist: bionic
37+
python: 3.6
38+
39+
install:
40+
- pip3 install cx-freeze
1441

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

1946
notifications:
@@ -22,4 +49,4 @@ notifications:
2249
env:
2350
global:
2451
- TRAVIS_LIBOPENSHOT=TEST
25-
- LANG="en_US.UTF-8"
52+
- LANG="en_US.UTF-8"

0 commit comments

Comments
 (0)