File: .travis.yml

package info (click to toggle)
toxic 0.8.3-2
  • links: PTS
  • area: main
  • in suites:
  • size: 2,780 kB
  • sloc: ansic: 13,998; objc: 263; makefile: 76; python: 57
file content (37 lines) | stat: -rw-r--r-- 1,292 bytes parent folder | download
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
---
language: python
python: nightly

addons:
  apt:
    packages:
      - astyle
      - libalut-dev
      - libconfig-dev
      - libnotify-dev
      - libopenal-dev
      - libopus-dev
      - libqrencode-dev
      - libvpx-dev

cache:
  directories:
    - $HOME/cache

install:
  # Where to find libraries.
  - export LD_LIBRARY_PATH=$HOME/cache/usr/lib
  - export PKG_CONFIG_PATH=$HOME/cache/usr/lib/pkgconfig
  # c-sodium
  - git clone --depth=1 --branch=stable https://github.com/jedisct1/libsodium ../libsodium
  - test -f $HOME/cache/usr/lib/libsodium.so || (cd ../libsodium && ./configure --prefix=$HOME/cache/usr && make install -j$(nproc))
  # c-toxcore
  - git clone --depth=1 https://github.com/TokTok/c-toxcore ../c-toxcore
  - test -f $HOME/cache/usr/lib/libtoxcore.so || (cd ../c-toxcore && cmake -B_build -H. -DCMAKE_INSTALL_PREFIX:PATH=$HOME/cache/usr && make -C_build install -j$(nproc))
  # astyle
  - wget -O ../astyle.tar.gz https://deb.debian.org/debian/pool/main/a/astyle/astyle_2.06.orig.tar.gz
  - test -f $HOME/cache/astyle/build/gcc/bin/astyle || (tar -xf ../astyle.tar.gz -C "$HOME/cache" && make -C "$HOME/cache/astyle/build/gcc" -j2)

script:
  - $HOME/cache/astyle/build/gcc/bin/astyle --options=astylerc $(find . -name "*.[ch]")
  - make ENABLE_PYTHON=1 -j2