Skip to content

Commit

Permalink
Added mac builds on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
flplv committed Dec 7, 2016
1 parent 02513e8 commit 556b28a
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
Expand Up @@ -30,6 +30,44 @@ matrix:
env: BUILD=cmake_coverage
- compiler: gcc
env: BUILD=test_report
- compiler: clang
os: osx
env: BUILD=autotools
addons:
apt:
packages:
- valgrind
- compiler: clang
os: osx
env: BUILD=cmake
- compiler: clang
os: osx
env: BUILD=autotools_gtest
- compiler: clang
os: osx
env: BUILD=cmake_gtest
- compiler: gcc
os: osx
env: BUILD=autotools
addons:
apt:
packages:
- valgrind
- compiler: gcc
os: osx
env: BUILD=cmake
- compiler: gcc
os: osx
env: BUILD=autotools_gtest
- compiler: gcc
os: osx
env: BUILD=cmake_gtest
- compiler: gcc
os: osx
env: BUILD=cmake_coverage
- compiler: gcc
os: osx
env: BUILD=test_report
- compiler: wcl
env: BUILD=make_dos
addons:
Expand All @@ -52,3 +90,7 @@ before_script:
- mkdir -p $CPPUTEST_BUILD_DIR && cd $CPPUTEST_BUILD_DIR
script:
- "../scripts/travis_ci_build.sh"
after_failure:
- "../scripts/travis_ci_after.sh"
after_success:
- "../scripts/travis_ci_after.sh"
11 changes: 11 additions & 0 deletions scripts/travis_ci_after.sh
@@ -0,0 +1,11 @@
#!/bin/bash
# Script run in the travis CI
set -ex

FILE="./test-suite.log"

if [ -f $FILE ]; then
cat $FILE
else
echo "$FILE not found."
fi
13 changes: 11 additions & 2 deletions scripts/travis_ci_build.sh
Expand Up @@ -8,8 +8,14 @@ if [ "x$BUILD" = "xautotools" ]; then
echo "CONFIGURATION DONE. Compiling now."
make check_all

make dist
make dist-zip
if [ "x$TRAVIS_OS_NAME" = "xosx" ]; then
COPYFILE_DISABLE=1 make dist
COPYFILE_DISABLE=1 make dist-zip
else
make dist
make dist-zip
fi


if [ "x$CXX" = "xg++" ]; then
echo "Deploy please"
Expand Down Expand Up @@ -56,6 +62,9 @@ if [ "x$BUILD" = "xcmake_gtest" ]; then
fi

if [ "x$BUILD" = "xtest_report" ]; then
if [ "x$TRAVIS_OS_NAME" = "xosx" ]; then
brew install ant
fi
autoreconf -i ..
../configure
make check
Expand Down

0 comments on commit 556b28a

Please sign in to comment.