forked from TaylorSMarks/playsound
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
60 lines (54 loc) · 2.83 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: python
jobs:
include:
# NOTE:
# >>> We don't have unlimited build credits on Travis - please be mindful of the costs of whichever builds you're running.
# >>> Only enable the specific build (or builds) you need. If any platform will work, pick the cheapest one (currently Ubuntu).
# >>> Enable all the platforms before making a PR, to ensure no regressions were accidentally introduced by your changes.
# >>> Each Ubuntu Run costs ~50 Build Credits, running all 3 Ubuntus costs ~150 Build Credits. Read NOTE at top.
# A typical Ubuntu desktop install would have gstreamer preinstalled, so it's okay to pull that in for our tests on a Ubuntu server.
- name: "Python 3.9 on Ubuntu 18 (Bionic)"
dist: bionic
python: 3.9
before_install:
- sudo apt-get install gstreamer1.0-tools gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
- name: "Python 3.6 on Ubuntu 18 (Bionic)"
dist: bionic
python: 3.6
before_install:
- sudo apt-get install gstreamer1.0-tools gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
virtualenv:
system_site_packages: true # Needed for python to be able to access gi on Linux.
# - name: "Python 2.7 on Ubuntu 14 (Trusty)"
# dist: trusty
# python: 2.7
# before_install:
# - sudo apt-get install python-gi gstreamer1.0-tools gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
# virtualenv:
# system_site_packages: true # Needed for python to be able to access gi on Linux.
# >>> Each macOS Run costs ~250 Build Credits - running both macOSs costs ~500 Build Credits. Read NOTE at top.
- name: "Python 3.9 on macOS 11.3 (Big Sur, 2020)"
os: osx
osx_image: xcode12.5
language: shell
script: python3 test.py
- name: "Python 2.7 on macOS 10.11 (El Capitan, 2015)"
os: osx
osx_image: xcode7.3
language: shell
# >>> Each Windows run costs ~100 Build Credits - running both Windows costs ~200 Build Credits. Read NOTE at top.
- name: "Python 2.7 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 2.7.11
env: PATH=/c/Python27:/c/Python27/Scripts:/c/tools/python:/c/tools/python/Scripts:$PATH
- name: "Python 3.9 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.9.5
env: PATH=/c/Python39:/c/Python39/Scripts:$PATH
install: true # Makes it do nothing instead of trying to find a requirements.txt file.
script:
- python test.py