diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-08-24 23:52:34 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-16 11:22:23 +0100 |
commit | 37c041f8159f7e89f2585243e9b8073f47d77fd1 (patch) | |
tree | ed1f983a231f5bf7d2c24ce994feb55ee4953cda /other/travis/toxcore-install | |
parent | c0d84ab48977f6ea80e8b5f7eca04423d4a31d26 (diff) |
Clean up Travis build a bit in preparation for osx/win.
Diffstat (limited to 'other/travis/toxcore-install')
-rwxr-xr-x | other/travis/toxcore-install | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/other/travis/toxcore-install b/other/travis/toxcore-install deleted file mode 100755 index d2e67dbc..00000000 --- a/other/travis/toxcore-install +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -e -u -x | ||
4 | . other/travis/env-$ENV.sh | ||
5 | |||
6 | # Set up opam. | ||
7 | opam init -y | ||
8 | eval `opam config env` | ||
9 | |||
10 | # Install required opam packages. | ||
11 | opam install -y ocamlfind ppx_deriving menhir | ||
12 | |||
13 | # Build apidsl. | ||
14 | git clone --depth=1 https://github.com/TokTok/apidsl ../apidsl | ||
15 | make -C ../apidsl -j$NPROC | ||
16 | |||
17 | # Install cpp-coveralls to upload test coverage results. | ||
18 | pip install --user cpp-coveralls | ||
19 | |||
20 | # Install astyle (version in ubuntu-precise too old). | ||
21 | [ -f $ASTYLE ] || { | ||
22 | wget -O ../astyle.tar.gz https://launchpad.net/ubuntu/+archive/primary/+files/astyle_2.05.1.orig.tar.gz | ||
23 | tar -xf ../astyle.tar.gz -C $CACHE_DIR | ||
24 | make -C $CACHE_DIR/astyle/build/gcc -j$NPROC | ||
25 | } | ||
26 | |||
27 | # Install libsodium (not in ubuntu-precise). | ||
28 | [ -f $CACHE_DIR/lib/libsodium.a ] || { | ||
29 | git clone --depth=1 --branch=stable https://github.com/jedisct1/libsodium ../libsodium | ||
30 | cd ../libsodium # pushd | ||
31 | ./autogen.sh | ||
32 | ./configure --prefix=$CACHE_DIR | ||
33 | make install -j$NPROC | ||
34 | cd - # popd | ||
35 | } | ||
36 | |||
37 | # Install libconfig (version in ubuntu-precise too old). | ||
38 | [ -f $CACHE_DIR/lib/libconfig.a ] || { | ||
39 | git clone --depth=1 --branch=REL1_6_STABLE https://github.com/hyperrealm/libconfig ../libconfig | ||
40 | cd ../libconfig # pushd | ||
41 | autoreconf -fi | ||
42 | ./configure --prefix=$CACHE_DIR | ||
43 | touch lib/scanner.l | ||
44 | make install -j$NPROC | ||
45 | cd - # popd | ||
46 | } | ||
47 | |||
48 | # Install libopus (not in ubuntu-precise). | ||
49 | [ -f $CACHE_DIR/lib/libopus.a ] || { | ||
50 | git clone --depth=1 --branch=1.1.2 https://github.com/xiph/opus ../opus | ||
51 | cd ../opus # pushd | ||
52 | ./autogen.sh | ||
53 | ./configure --prefix=$CACHE_DIR | ||
54 | make install -j$NPROC | ||
55 | cd - # popd | ||
56 | } | ||