Add CircleCI config

This commit is contained in:
Reda Lemeden 2015-10-22 21:28:52 +02:00
parent ce384ae22a
commit 19297c73bc
5 changed files with 43 additions and 0 deletions

6
bin/carthage-bootstrap Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env sh
if ! diff Cartfile.resolved Carthage/Cartfile.resolved &>/dev/null; then
carthage bootstrap --platform iOS
cp Cartfile.resolved Carthage
fi

6
bin/install-carthage Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env sh
version=0.9.3
curl -L -O "https://github.com/Carthage/Carthage/releases/download/$version/Carthage.pkg"
sudo installer -pkg Carthage.pkg -target /

3
bin/setup Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
bundle install

12
bin/test Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env sh
set -o pipefail
xcrun xcodebuild \
-project Gifu.xcodeproj \
-scheme Gifu \
-sdk iphonesimulator \
CONFIGURATION_BUILD_DIR='./build' \
test \
| xcpretty --color

16
circle.yml Executable file
View File

@ -0,0 +1,16 @@
machine:
xcode:
version: "7.0"
dependencies:
pre:
- bin/install-carthage
override:
- bin/carthage-bootstrap
cache_directories:
- "Carthage"
- "build"
test:
override:
- bin/test