Skip to content

Commit

Permalink
Added Swift Package Manager to Travis CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
sja26 committed Oct 13, 2018
1 parent a9b5446 commit 95e0998
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
matrix:
- SCHEME="SwiftGit2-OSX"
- SCHEME="SwiftGit2-iOS"
- SCHEME="SwiftGit2-SPM"

matrix:
fast_finish: true
Expand Down
7 changes: 7 additions & 0 deletions script/cibuild
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if [ -z "$SCHEME" ]; then
echo "The SCHEME environment variable is empty. Please set this to one of:"
echo "- SwiftGit2-OSX"
echo "- SwiftGit2-iOS"
echo "- SwiftGit2-SPM"
exit 1
fi

Expand Down Expand Up @@ -83,4 +84,10 @@ elif [ "$SCHEME" == "SwiftGit2-iOS" ]; then
${XCODE_OPTIONS[*]} \
build test \
2>&1 | xcpretty $XCPRETTY_FORMAT_OPTIONS
elif [ "$SCHEME" == "SwiftGit2-SPM" ]; then
echo "*** Building and testing $SCHEME..."
echo

make test \
2>&1 | xcpretty $XCPRETTY_FORMAT_OPTIONS
fi

0 comments on commit 95e0998

Please sign in to comment.