-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.travis.yml
68 lines (64 loc) · 1.81 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
61
62
63
64
65
66
67
68
language: vala
sudo: required
dist: trusty
compiler:
- gcc
- clang
cache: ccache
env:
- DISPLAY=:99.0
notifications:
email: false
irc:
channels:
- "chat.freenode.net#ricin-dev"
on_success: change
on_failure: always
install:
# Utils
- sudo apt-add-repository ppa:vala-team/ppa -y
- sudo apt-add-repository ppa:mc3man/trusty-media -y
- sudo apt-get update -q
- sudo apt-get install -y checkinstall build-essential intltool texinfo libgtk-3-dev libglib2.0-dev libgdk-pixbuf2.0-dev libsoup2.4-dev libjson-glib-dev libnotify-bin python3 python valac-0.30 libnotify-dev libopus-dev ffmpeg lcov
- sudo add-apt-repository ppa:rebuntu16/glade-3.19+-trusty -y # Ricin requires Gtk+3 > 3.18
- sudo apt-get update -q
- sudo apt-get install -y gtk+3.0 libgtk-3-0 libgtk-3-dev
before_script:
# Gcovr
- wget https://github.com/eraserix/gcovr/archive/3.1.tar.gz
- tar -xvf 3.1.tar.gz
- cd gcovr-3.1
- sudo python setup.py install
- cd ..
# filter_audio
- git clone https://github.com/irungentoo/filter_audio
- cd filter_audio
- make -j$(nproc)
- sudo make install
- cd ..
# libsodium
- git clone git://github.com/jedisct1/libsodium.git
- cd libsodium
- git checkout tags/1.0.3
- ./autogen.sh
- ./configure && make -j$(nproc)
- sudo checkinstall --install --pkgname libsodium --pkgversion 1.0.0 --nodoc -y
- sudo ldconfig
- cd ..
# Toxcore
- git clone https://github.com/irungentoo/toxcore.git
- cd toxcore
- autoreconf -if
- ./configure
- make -j$(nproc)
- sudo make install
- echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf
- sudo ldconfig
- cd ..
script:
- mkdir dist
- ./waf distclean # Cleanup.
- ./waf configure --prefix=/home/travis/build/RicinApp/Ricin/dist # Configure, TODO; Add tests/coverage.
- ./waf build # Build.
- sudo ./waf install # And finally install.
- bash -ex appimage.sh