wxWidgets/.travis.yml
Vadim Zeitlin 844a7e426a Extract Travis before install script steps into a separate file
This allows to do make these steps more complicated, e.g. avoid using apt-get
under non-Linux (and even non-Debian/Ubuntu) platforms.

Also install GTK+ development package explicitly, while it's already available
on the older Travis Ubuntu 12.04 VMs, this is not the case for the newer 14.04
ones.
2016-01-24 21:25:31 +01:00

52 lines
1.6 KiB
YAML

# This is the control file for Travis continuous integration system.
#
# It is used automatically for the repositories on Github if it's found in the
# root directory of the project.
language: cpp
sudo: required
compiler: gcc
branches:
only:
- master
- WX_3_0_BRANCH
notifications:
email:
recipients:
- vadim@wxwidgets.org
on_success: change
on_failure: change
before_install: ./build/tools/before_install.sh
env:
- wxCONFIGURE_FLAGS=
- wxCONFIGURE_FLAGS="--disable-shared"
- wxCONFIGURE_FLAGS="--disable-precomp-headers --enable-monolithic"
- wxCONFIGURE_FLAGS="--enable-stl" CXXFLAGS=-std=c++0x
script:
- echo 'Configuring...' && echo -en 'travis_fold:start:script.1\\r'
- ./configure --disable-optimise $wxCONFIGURE_FLAGS
- echo -en 'travis_fold:end:script.1\\r'
- echo 'Building...' && echo -en 'travis_fold:start:script.2\\r'
- make
- echo -en 'travis_fold:end:script.2\\r'
- echo 'Testing...' && echo -en 'travis_fold:start:script.3\\r'
- make -C tests
- pushd tests
- ./test -t
- popd
- echo -en 'travis_fold:end:script.3\\r'
- echo 'Building the samples...' && echo -en 'travis_fold:start:script.4\\r'
- make samples
- echo -en 'travis_fold:end:script.4\\r'
- echo 'Installing...' && echo -en 'travis_fold:start:script.5\\r'
- sudo make install
- echo -en 'travis_fold:end:script.5\\r'
- echo 'Testing building with the installed version...' && echo -en 'travis_fold:start:script.6\\r'
- make -C samples/minimal -f makefile.unx -B
- echo -en 'travis_fold:end:script.6\\r'