Skip to content

Commit

Permalink
Add travis build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Winterkvist committed Oct 31, 2016
1 parent 3bd5cca commit 81c3c0d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Expand Up @@ -2,9 +2,7 @@ osx_image: xcode8
language: objective-c

before_install:
- brew update
- if brew outdated | grep -qx carthage; then brew upgrade carthage; fi
- travis_wait 35 carthage bootstrap --platform Mac,iOS
- travis_wait 35; bin/bootstrap-if-needed

script:
- xcodebuild clean build -project Malibu.xcodeproj -scheme "Malibu-Mac" -sdk macosx
Expand Down
4 changes: 4 additions & 0 deletions bin/bootstrap
@@ -0,0 +1,4 @@
#!/bin/sh

carthage bootstrap
cp Cartfile.resolved Carthage
5 changes: 5 additions & 0 deletions bin/bootstrap-if-needed
@@ -0,0 +1,5 @@
#!/bin/sh

if ! cmp -s Cartfile.resolved Carthage/Cartfile.resolved; then
bin/bootstrap
fi

0 comments on commit 81c3c0d

Please sign in to comment.