.travis.yml 2.3 KB
Newer Older
1 2 3 4 5 6
sudo: required
dist: trusty
language:
 - c
os:
 - linux
7 8
compiler:
 - gcc
9
   # - clang
10
before_install:
11
 - wget http://lv2plug.in/spec/lv2-1.12.0.tar.bz2
12 13 14 15 16
 - wget http://download.drobilla.net/serd-0.22.0.tar.bz2
 - wget http://download.drobilla.net/sord-0.14.0.tar.bz2
 - wget http://download.drobilla.net/sratom-0.4.6.tar.bz2
 - wget http://download.drobilla.net/lilv-0.22.0.tar.bz2
 - wget https://github.com/nanomsg/nanomsg/releases/download/0.8-beta/nanomsg-0.8-beta.tar.gz
17
 - wget https://github.com/warmcat/libwebsockets/archive/v1.7.5.tar.gz
18 19 20 21 22 23
 - tar xjf lv2-1.12.0.tar.bz2 
 - tar xjf serd-0.22.0.tar.bz2
 - tar xjf sord-0.14.0.tar.bz2
 - tar xjf sratom-0.4.6.tar.bz2
 - tar xjf lilv-0.22.0.tar.bz2
 - tar xzf nanomsg-0.8-beta.tar.gz
24
 - tar xzf v1.7.5.tar.gz
25 26
 - if [ "$CC" = "clang" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm-upper; fi
 - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
27
 - sudo add-apt-repository -y ppa:andykimpe/cmake
28
 - sudo apt-get update -qq
29
install:
30
 - sudo apt-get install xsltproc 
31 32
 - if [ "$CC" = "clang" ]; then sudo apt-get install -y clang-3.6 libstdc++-5-dev; fi
 - if [ "$CC" = "gcc" ]; then sudo apt-get install -y gcc-5 g++-5; fi
33 34 35 36 37 38
 - pushd lv2-1.12.0 && ./waf configure --no-plugins --prefix=/usr && ./waf build && sudo ./waf install && popd
 - pushd serd-0.22.0 && ./waf configure --no-utils --prefix=/usr && ./waf build && sudo ./waf install && popd
 - pushd sord-0.14.0 && ./waf configure --no-utils --prefix=/usr && ./waf build && sudo ./waf install && popd
 - pushd sratom-0.4.6 && ./waf configure --prefix=/usr && ./waf build && sudo ./waf install && popd
 - pushd lilv-0.22.0 && ./waf configure --no-utils --prefix=/usr && ./waf build && sudo ./waf install && popd
 - pushd nanomsg-0.8-beta && ./configure --prefix=/usr && make && sudo make install && popd
39
 - pushd libwebsockets-1.7.5 && mkdir build && pushd build && cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make && sudo make install && popd && popd
40
before_script:
41 42
 - if [ "$CC" = "clang" ]; then export CXX="clang++-3.6" CC="clang-3.6" CFLAGS="-ffreestanding"; fi
 - if [ "$CC" = "gcc" ]; then export CXX="g++-5" CC="gcc-5"; fi
Hanspeter Portner's avatar
Hanspeter Portner committed
43
 - mkdir build && pushd build && cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=1 -DBUILD_SIMPLE_UI=1 -DBUILD_WEB_UI=1 .. && popd
44
script:
45
 - pushd build && make && ARGS="-VV" make test && sudo make install && popd