forked from haavard/tox-weechat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (34 loc) · 1.09 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
dist: trusty
sudo: false
addons:
apt:
sources:
- sourceline: 'deb https://weechat.org/ubuntu trusty main'
packages:
- weechat-dev
env:
# install dependencies under $HOME because we don't have sudo
- DEPENDENCY_DIR=$HOME/dependencies
install:
# install libsodium, required by libtoxcore
- mkdir libsodium && pushd libsodium
&& curl -fSsL "https://download.libsodium.org/libsodium/releases/libsodium-1.0.16.tar.gz"
| tar -xz --strip-components 1
&& ./configure --prefix="$DEPENDENCY_DIR"
&& make install
&& popd
# install libtoxcore
- mkdir c-toxcore && pushd c-toxcore
&& curl -fSsL "https://github.com/TokTok/c-toxcore/archive/v0.2.1.tar.gz"
| tar -xz --strip-components 1
&& autoreconf -if
&& ./configure --disable-ntox --disable-tests --disable-daemon
--with-libsodium-libs="$DEPENDENCY_DIR/lib"
--with-libsodium-headers="$DEPENDENCY_DIR/include"
--prefix="$DEPENDENCY_DIR"
&& make install
&& popd
script:
- mkdir build && cd build
- cmake -DCMAKE_PREFIX_PATH:PATH="$DEPENDENCY_DIR" ..
- make