]> git.saurik.com Git - wxWidgets.git/commitdiff
Update Travis configuration to run tests and build more configurations.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 7 Aug 2013 11:08:21 +0000 (11:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 7 Aug 2013 11:08:21 +0000 (11:08 +0000)
Install libcppunit-dev in order to be able to run the unit tests (at least the
non-GUI ones for now).

Also build in several configurations: shared/static, multilib/monolithic and
also STL. This should help to find problems appearing only in some specific
build variants.

Closes #15369.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

.travis.yml

index f9ee9d626de3aed7c22015deef2753ca92d34b4c..7f19bdead38fa12246bac522376e8f2f79aa4565 100644 (file)
@@ -17,9 +17,22 @@ notifications:
         on_success: change
         on_failure: change
 
+before_install:
+    - sudo apt-get install -y libcppunit-dev
+
+env:
+    - wxCONFIGURE_FLAGS=
+    - wxCONFIGURE_FLAGS="--disable-shared"
+    - wxCONFIGURE_FLAGS="--disable-precomp-headers --enable-monolithic"
+    - wxCONFIGURE_FLAGS="--enable-stl" CXXFLAGS=-std=c++0x
+
 script:
-    - ./configure --disable-optimise
+    - ./configure --disable-optimise $wxCONFIGURE_FLAGS
     - make
+    - make -C tests
+    - pushd tests
+    - ./test -t
+    - popd
     - make samples
     - sudo make install
     - make -C samples/minimal -f makefile.unx