This repository has been archived by the owner on Jun 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis_non_docker.yml
161 lines (153 loc) · 8.21 KB
/
.travis_non_docker.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
matrix:
fast_finish: true
include:
- python: '3.5'
env: TOXENV=typing PYTHON="python3" PACKAGES="python3-gi python3-gi-cairo"
sudo: required
dist: trusty
language: python
group: edge
- python: '3.5'
env: TOXENV=py35 PYTHON="python3" PACKAGES="python3-gi python3-gi-cairo"
sudo: required
dist: trusty
language: python
group: edge
allow_failures:
- python: '3.5'
env: TOXENV=typing
cache:
apt: true
directories:
- "$HOME/.cache/pip"
- "$HOME/virtualenv/python3.5.2/lib/python3.5/site-packages"
- "$HOME/.ccache"
- "$HOME/jhbuild"
- "$HOME/gnome"
before_install:
- export SKIP_ON_TRAVIS=yes
- export CURRENT_DIR=$(pwd)
- export GSTREAMER=1.0
# - export ENABLE_PYTHON2=yes
- export ENABLE_PYTHON3=yes
- export ENABLE_GTK=yes
- export PYTHON_VERSION_MAJOR=3
- export PYTHON_VERSION=3.5
- export CFLAGS="-fPIC -O0 -ggdb -fno-inline -fno-omit-frame-pointer"
- export MAKEFLAGS="-j4"
- export PREFIX="${HOME}/jhbuild"
- export JHBUILD="${HOME}/gnome"
- export PATH=${PREFIX}/bin:${PREFIX}/sbin:${PATH}
- export LD_LIBRARY_PATH=${PREFIX}/lib:${LD_LIBRARY_PATH}
- export PYTHONPATH=${PREFIX}/lib/python${PYTHON_VERSION}/site-packages:/usr/lib/python${PYTHON_VERSION}/site-packages
- export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig:${PREFIX}/share/pkgconfig:/usr/lib/pkgconfig
- export XDG_DATA_DIRS=${PREFIX}/share:/usr/share
- export XDG_CONFIG_DIRS=${PREFIX}/etc/xdg
- export PYTHON="python3"
- export PACKAGES="python3-gi python3-gi-cairo"
- export CC=gcc
- if [ '$GSTREAMER' = '1.0' ]; then sudo add-apt-repository -y ppa:ricotz/testing;
fi
- if [ '$GSTREAMER' = '1.0' ]; then sudo add-apt-repository -y ppa:gnome3-team/gnome3;
fi
- if [ '$GSTREAMER' = '1.0' ]; then sudo add-apt-repository -y ppa:gnome3-team/gnome3-staging;
fi
- sudo add-apt-repository -y ppa:pitti/systemd-semaphore
- travis_retry sudo apt-get update -qq
- travis_retry sudo apt-get update -qq
- travis_retry sudo apt-get install -y libz-dev libbz2-dev gstreamer$GSTREAMER-tools libgstreamer$GSTREAMER-dev
libgstreamer-plugins-base$GSTREAMER-dev libgstreamer-plugins-bad$GSTREAMER-dev
- if [ '$GSTREAMER' = '1.0' ]; then travis_retry sudo apt-get install -y libgstreamer-plugins-good$GSTREAMER-dev;
fi
- travis_retry sudo apt-get update -qq
- travis_retry sudo apt-get install -y gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 graphviz-dev
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad python-gst-1.0
- travis_retry sudo apt-get install -qq python3-gi
- travis_retry sudo apt-get install -qq python-gst-1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad
gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-libav libsndfile1-dev
libasound2-dev libgstreamer-plugins-base1.0-dev python-numpy python-scipy
- travis_retry sudo apt-get -y install automake gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0
gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good
gstreamer1.0-plugins-ugly gstreamer1.0-tools libasound2-dev libgstreamer-plugins-base1.0-dev
libsndfile1-dev python python-dev python-gi python-gst-1.0 python-gst-1.0 python-imaging
python-lxml python-numpy python-scipy python-virtualenv python3-gi
- travis_retry sudo apt-get -y install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev
gnome-common;
- travis_retry sudo apt-get -y install libgstreamer1.0-dev gstreamer1.0-alsa gstreamer1.0-plugins-base;
- travis_retry sudo apt-get -y install python-dev libsmpeg-dev libswscale-dev libavformat-dev libavcodec-dev
libjpeg-dev libtiff4-dev libX11-dev libmtdev-dev;
- travis_retry sudo apt-get -y install python-setuptools build-essential libgl1-mesa-dev libgles2-mesa-dev;
- travis_retry sudo apt-get -y install xvfb pulseaudio;
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository 'deb http://us.archive.ubuntu.com/ubuntu/
trusty main restricted universe multiverse'; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository 'deb http://us.archive.ubuntu.com/ubuntu/
trusty-updates main restricted universe multiverse'; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then travis_retry sudo apt-get update -qq; travis_retry sudo apt-get install
-qq pkg-config; fi
- travis_retry sudo apt-get -y update
- travis_retry sudo apt-get -y install ubuntu-restricted-extras
- travis_retry sudo apt-get -y install libfftw3-dev
- travis_retry sudo apt-get install -qq python3-dev python3-cairo-dev python3-gi gnome-common gtk-doc-tools
libgtk-3-dev libgirepository1.0-dev libmount-dev cvs;
- travis_retry sudo apt-get update -q
- travis_retry sudo apt-get install --no-install-recommends -y xvfb gir1.2-gtk-3.0 $(echo $PACKAGES)
- travis_retry sudo apt-get install -qq build-essential git
- travis_retry sudo apt-get install -qq gettext xsltproc docbook-xml docbook-xsl
- travis_retry sudo apt-get install -qq bison docbook-xsl build-essential git-core python-libxml2
byacc flex apt-file autopoint
- travis_retry sudo apt-get install gcc automake autoconf libtool bison swig python-dev libpulse-dev -y
# NOTE: We only need this for sysdeps
# - travis_retry sudo apt-get install -qq apt-file
# - sudo apt-file update
# ubuntu 16.04 says:
# ['Linux', '4.4.0', '38', 'generic', 'x86_64', 'with', 'Ubuntu', '16.04', 'xenial']
# travis says
# ['Linux', '4.4.0', '38', 'generic', 'x86_64', 'with', 'debian', 'jessie', 'sid']
- python -c "import platform;print(platform.platform().split('-'))"
- travis_retry sudo apt-get install wget -qq
- pip install virtualenv virtualenvwrapper
- sudo pip install --upgrade virtualenvwrapper
- export VIRTUALENV_WRAPPER_SH=`which virtualenvwrapper.sh`
- export VIRTUALENVWRAPPER_PYTHON=`which python3`
- export VIRTUALENVWRAPPER_VIRTUALENV=`which virtualenv`
- pip install -I path.py==7.7.1
- export WORKON_HOME=${HOME}/.virtualenvs
- export PROJECT_HOME=${HOME}/dev
- export VIRTUALENVWRAPPER_PYTHON=`which python3`
- export VIRTUALENVWRAPPER_VIRTUALENV=`which virtualenv`
- env
- travis_retry source $VIRTUALENV_WRAPPER_SH
- export PYTHONSTARTUP=$HOME/.pythonrc
- export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
- mkdir -p $WORKON_HOME
- travis_retry mkvirtualenv scarlett_os
- travis_retry bash ./ci/set_postactivate.sh
- workon scarlett_os
- travis_retry pip install -U coveralls sphinx numpy ipython pytest-cov
- travis_retry bash ./ci/travis.sh
# - travis_retry jhbuild run -- pip install -e .[test]
- travis_retry jhbuild run python3 setup.py install
install:
- travis_retry pip install -U coveralls sphinx numpy ipython
- travis_retry sudo apt-get update -q
- travis_retry sudo apt-get install --no-install-recommends -y xvfb gir1.2-gtk-3.0 $(echo $PACKAGES)
script:
- jhbuild run -- coverage run -- setup.py test
after_success:
- coveralls
deploy:
distributions: sdist bdist_wheel
provider: pypi
user: bossjones
password:
secure: RTwOAJzBeEXy1as+a3sutcSjNTfoSg15ep8tHIjOqK0etkThWXNFs0FvWNuChV3zsFhA40sMpAamHvcGXJ717GAYIPstIrgAusLKM7OIUXpUF6kqvZsRQw9RPS4vBmueBoBo+pLY6q9gIP+Bav+fFwWocSyjwHLGcaOVdOF/m2VbWEg3p+SGwVolguSpWBNobLDmwj8yd/qiZ6b2LvTrOVkUENfa8Zk8BSXerZiTe98I2c/KuGqkVird+3LulK0kDU1FENO9v5eh+wZzElgbVSGfy87gkdc5whYIz4oA794Gc0jt+YiP2k0pNPRGAcrAn5MRjCdvWQtmkbxdns/JZOeK59SrhcQ6BRfDNQC97MPEZAz/E3qhiDPxwbhuK+LsdIiRHnazwv4MuUU27TcqwtTWcYijzT0aifiQUW6hLwpmVMx6GJy8dvhh+Ursr52jaAaFVx31NUB96+Wa204LCZV1CFo8vKgqDxTjZBfEK0zepQUh06dRdMJaeAN/dhsupMjnEfVY5GSv+ySKkJJ2r77mngyVO3snMs6x2sdH+PjfMnOEmQUcpnaNCQF01RxxfUz+7TY0JonM4yb7dnc+T402G+PhEDKGi5/O1YCIHwWQcMxhv2rMiYSlUt3ikcxkW8YGhhRvEUX1rGyAtPWBanyJ+KMb3QWv7huKE7Ezc/E=
on:
condition: "$TOXENV == py27"
repo: bossjones/scarlett_os
tags: true
notifications:
slack:
on_success: change
on_failure: always
rooms:
secure: arS7e7IDG80ukrrjy4fVfNDh5Yqrz4mxmduWqJU2zHzwxL0QkJWnhncWBpTgXr06MVgWYwq/YnoCGZ+wcWHkYzsqDHWtFI0JguZuJcFAWV5l7PWOxcUUh731hipRcgkZIH03pqnfZTbN3kkNTvFcTL9NG92ZOYd/ZSQeCnNPF9T2PUjn5LnPNwOxJSVAdmvz7CoLJWIR6vF9ojoxZdMj1RhV4b1C9orP3pBh3V3sVc5ExX6cUePXJtkvb51fXwdCsGNA22xZrDfbxCoOXfMmgDuN/7W/DVPPyaZCInYQl2B/oLF+3TOqUZ8STM3BPDIBjxgPRBdULIqeaQJNNJ9rfQ6h+YhvCWDmZD5ugdTQkGCSX2hR4TGMnS9v/nu5KKSalQEkNOfcqZUSTRVHKL800arEwja2avRGu9KBlijg79r/k2EILb7sPfleeS0+eLKIYTBVyQvuiqo31NcZ4Yun9ykQlTJW0n1NiVrLRVHbCIScrHwyH8pI4ts6PbwtUO8HWWDXEUSZRipc14ckZBzqB6ozAAwtF4fStnHC5rkd1sRreZalLKsZxaVpsX0mspZfSLfz6eV34vnDs9Xv0+tPuW0X0P1/FZIykvjDrmoM8s5TD1xzES9zRslhWxK2yv0a5OaryWvicQKcCwg8zwdiCTAwq1wBNkYzrtTnTN9QnRA=