From 81c3c0d3947bbbc1a0da42a3295eca7849f8d743 Mon Sep 17 00:00:00 2001 From: Christoffer Winterkvist Date: Mon, 31 Oct 2016 07:12:48 +0100 Subject: [PATCH] Add travis build scripts --- .travis.yml | 4 +--- bin/bootstrap | 4 ++++ bin/bootstrap-if-needed | 5 +++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100755 bin/bootstrap create mode 100755 bin/bootstrap-if-needed diff --git a/.travis.yml b/.travis.yml index 40a7286..603d8b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/bin/bootstrap b/bin/bootstrap new file mode 100755 index 0000000..d08c0b5 --- /dev/null +++ b/bin/bootstrap @@ -0,0 +1,4 @@ +#!/bin/sh + +carthage bootstrap +cp Cartfile.resolved Carthage diff --git a/bin/bootstrap-if-needed b/bin/bootstrap-if-needed new file mode 100755 index 0000000..c49a31d --- /dev/null +++ b/bin/bootstrap-if-needed @@ -0,0 +1,5 @@ +#!/bin/sh + +if ! cmp -s Cartfile.resolved Carthage/Cartfile.resolved; then + bin/bootstrap +fi