mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-12 04:26:43 +00:00
Updated the travis file
This commit is contained in:
parent
cf982feb6b
commit
667752fde3
38
.travis.yml
38
.travis.yml
@ -2,41 +2,15 @@ language: cpp
|
||||
compiler: gcc
|
||||
sudo: required
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
before_install:
|
||||
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||
- sudo add-apt-repository ppa:beineri/opt-qt551 -y
|
||||
- sudo apt-get update
|
||||
- docker pull filcuc/dotherside
|
||||
|
||||
install:
|
||||
- echo `pwd`
|
||||
- export PROJECT_DIR=`pwd`
|
||||
- echo "Installing lcov"
|
||||
- sudo apt-get -y install lcov
|
||||
- echo "Installing coveralls gem"
|
||||
- gem install coveralls-lcov
|
||||
- echo "Installing Qt and GCC"
|
||||
- sudo apt-get -y install qt-latest gcc-5 g++-5
|
||||
- echo "Moving to /tmp"
|
||||
- cd /tmp
|
||||
- echo "Installing CMake"
|
||||
- wget --no-check-certificate https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz
|
||||
- tar xf cmake-3.3.2-Linux-x86_64.tar.gz
|
||||
- export CMAKE_EXECUTABLE=/tmp/cmake-3.3.2-Linux-x86_64/bin/cmake
|
||||
- cd -
|
||||
|
||||
before_script:
|
||||
- export CXX=g++-5
|
||||
- export CC=gcc-5
|
||||
- source /opt/qt55/bin/qt55-env.sh
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- sleep 3 # give xvfb some time to start
|
||||
|
||||
script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- $CMAKE_EXECUTABLE -DENABLE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug ..
|
||||
- make
|
||||
- ./test/TestDynamicQObject
|
||||
- lcov --directory . --capture --output-file coverage.info
|
||||
- coveralls-lcov --repo-token ${COVERALLS_REPO_TOKEN} coverage.info
|
||||
- ls
|
||||
- docker run filcuc/dotherside /bin/bash /root/build.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user