Skip to content

Commit

Permalink
Add more test cases to Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kecsap committed Jun 16, 2017
1 parent b16d1d8 commit 7a6ac22
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,18 @@ before_install:

install:
- echo Building INDI Core and drivers
- travis-ci/build-core.sh
- travis-ci/build-libs.sh
- travis-ci/build-core.sh
- travis-ci/build-libs.sh
- travis-ci/build-3rdparty.sh
- travis-ci/build-deb-packages.sh
- travis-ci/build-deb-packages.sh
- travis-ci/build-core.sh Debug
- travis-ci/build-libs.sh Debug
- travis-ci/build-3rdparty.sh Debug
- travis-ci/build-deb-packages.sh Debug
- travis-ci/build-core.sh Release
- travis-ci/build-libs.sh Release
- travis-ci/build-3rdparty.sh Release
- travis-ci/build-deb-packages.sh Release

script:
- travis-ci/run-tests.sh
Expand Down
4 changes: 2 additions & 2 deletions travis-ci/build-3rdparty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ if [ .${TRAVIS_BRANCH%_*} == '.drv' ] ; then
echo "Building $DRV"
mkdir -p build/$DRV
pushd build/$DRV
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ . ../../3rdparty/$DRV
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ . ../../3rdparty/$DRV -DCMAKE_BUILD_TYPE=$1
make
popd
else
echo "Building all 3rd party drivers"
mkdir -p build/3rdparty
pushd build/3rdparty
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ . ../../3rdparty/
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ . ../../3rdparty/ -DCMAKE_BUILD_TYPE=$1
make
popd
fi
Expand Down
2 changes: 1 addition & 1 deletion travis-ci/build-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ else
echo "==> Building INDI Core"
mkdir -p build/libindi
pushd build/libindi
cmake -DINDI_BUILD_UNITTESTS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ . ../../libindi/
cmake -DINDI_BUILD_UNITTESTS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ . ../../libindi/ -DCMAKE_BUILD_TYPE=$1
make
sudo make install
popd
Expand Down
2 changes: 1 addition & 1 deletion travis-ci/build-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for lib in $LIBS ; do
echo "Building $lib ..."
mkdir -p build/$lib
pushd build/$lib
cmake -DCMAKE_INSTALL_PREFIX=/usr/local . $SRC/$lib
cmake -DCMAKE_INSTALL_PREFIX=/usr/local . $SRC/$lib -DCMAKE_BUILD_TYPE=$1
make
sudo make install
popd
Expand Down

0 comments on commit 7a6ac22

Please sign in to comment.