2016-03-18 21:35:54 +01:00
|
|
|
dist: trusty
|
2017-11-22 22:44:53 +01:00
|
|
|
sudo: require
|
2016-03-18 21:35:54 +01:00
|
|
|
language: cpp
|
2017-11-22 22:44:53 +01:00
|
|
|
compiler: gcc
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
# C++11
|
|
|
|
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
|
|
|
|
install:
|
|
|
|
# C++11
|
|
|
|
- sudo apt-get install -qq gcc-5 g++-5 libopencv-dev libcurl4-openssl-dev libssl-dev
|
|
|
|
|
2016-03-18 21:35:54 +01:00
|
|
|
before_script:
|
2017-11-29 20:13:31 +01:00
|
|
|
- mkdir build
|
|
|
|
- export BUILD_DIR=$PWD/build
|
2017-11-29 20:44:23 +01:00
|
|
|
- export CC=/usr/bin/gcc-5
|
|
|
|
- export CXX=/usr/bin/g++-5
|
2017-11-22 22:22:31 +01:00
|
|
|
- wget https://cmake.org/files/v3.8/cmake-3.8.1.tar.gz -O /tmp/cmake.tar.gz
|
|
|
|
- mkdir /tmp/cmake
|
2017-11-29 18:11:18 +01:00
|
|
|
- tar -xzf /tmp/cmake.tar.gz -C /tmp/cmake
|
2017-11-22 23:47:15 +01:00
|
|
|
- cd /tmp/cmake/cmake-3.8.1
|
2017-11-22 23:22:02 +01:00
|
|
|
- ./bootstrap --system-curl
|
2017-11-29 18:11:18 +01:00
|
|
|
- make -j$(nproc) > /dev/null
|
|
|
|
- sudo make install > /dev/null
|
2017-11-22 22:22:31 +01:00
|
|
|
- wget https://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.tar.gz -O /tmp/boost.tar.gz
|
|
|
|
- mkdir /tmp/boost
|
2017-11-29 18:11:18 +01:00
|
|
|
- tar -xzf /tmp/boost.tar.gz -C /tmp/boost
|
2017-11-29 18:23:07 +01:00
|
|
|
- cd /tmp/boost/boost_1_63_0
|
2017-11-22 23:22:02 +01:00
|
|
|
- ./bootstrap.sh
|
2017-11-29 19:02:59 +01:00
|
|
|
- sudo ./b2 -j $(nproc) cxxflags=-fPIC threading=multi runtime-link=shared --with-log --with-serialization --with-system --with-date_time --with-filesystem --with-regex --with-timer --with-chrono --with-thread --with-program_options install > /dev/null
|
2017-11-22 22:22:31 +01:00
|
|
|
- wget https://download.affectiva.com/linux/gcc-5.4/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit.tar.gz -O /tmp/affdex-sdk.tar.gz
|
2016-03-18 21:35:54 +01:00
|
|
|
- mkdir /tmp/affdex-sdk
|
2017-11-29 18:11:18 +01:00
|
|
|
- tar -xzf /tmp/affdex-sdk.tar.gz -C /tmp/affdex-sdk
|
2017-11-29 20:13:31 +01:00
|
|
|
- cd $BUILD_DIR
|
|
|
|
- cmake -DBOOST_ROOT=/usr/ -DOpenCV_DIR=/usr/ -DAFFDEX_DIR=/tmp/affdex-sdk ..
|
2017-11-22 22:44:53 +01:00
|
|
|
|
2016-03-18 21:35:54 +01:00
|
|
|
script:
|
|
|
|
- make
|