Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (60 sloc) 1.68 KB
language: cpp
dist: xenial
compiler: gcc
before_install:
# Qt5, from https://gist.github.com/jreese/6207161#gistcomment-1462109
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-get update -qq
# C++14
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
# Qt5
- sudo apt-get install -qq libqt5webkit5-dev qtdeclarative5-dev
- export QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
# C++14
- sudo apt-get install -qq g++-6
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
# cppcheck
- sudo apt-get install -qq cppcheck
# GraphViz
- sudo apt-get install -qq graphviz
# Codecov
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-6 90
- sudo pip install codecov
# OCLint
- ./install_oclint
# libnds
# - sudo ./build_libnds_64 > /dev/null
# - echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
# - echo "export DEVKITARM=$DEVKITPRO/devkitARM" >> ~/.bashrc
addons:
apt:
packages: libboost-all-dev
# Xenial
services:
- xvfb
# Trusty
# Start virtual X server
# before_script:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - sleep 3 # give xvfb some time to start
script:
# Build and run tests
- ./build_files > /dev/null
- ./build_console_test > /dev/null
- ./Console/CityOfThievesConsoleTest > /dev/null
- ./build_console > /dev/null
- ./build_desktop > /dev/null
# Build libnds
# - travis_wait 40 ./build_nds
# cppcheck
- cppcheck --quiet --error-exitcode=1 .
# Codecov
- ./get_code_cov &> /dev/null
- codecov &> /dev/null
# OCLint
- ./do_oclint || true
after_success:
- bash <(curl -s https://codecov.io/bash)
You can’t perform that action at this time.