Skip to content

Commit

Permalink
67: Build on Travis MacOSX only on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Jan 4, 2016
1 parent a39e43f commit 3793dc1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -32,7 +32,8 @@ before_install:

before_script:
- bash -e ./before_script.sh


# Build on MacOSX is triggered only for pull requests
script:
- export
- mvn -f releng/it.xsemantics.releng/pom.xml clean verify -U -Dfindbugs.skip=true -Pjacoco-report coveralls:report
- bash -e ./travis_build.sh
14 changes: 14 additions & 0 deletions travis_build.sh
@@ -0,0 +1,14 @@
#!/bin/bash

set -ev
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
echo "Build on MacOSX: Pull Request"
mvn -f releng/it.xsemantics.releng/pom.xml clean verify -U -Dfindbugs.skip=true
else
echo "Skipping build on MacOSX for standard commit"
fi
else
echo "Build on Linux"
mvn -f releng/it.xsemantics.releng/pom.xml clean verify -U -Dfindbugs.skip=true -Pjacoco-report coveralls:report
fi

0 comments on commit 3793dc1

Please sign in to comment.