Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
Zip
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
YongYue
Zip
Commits
075fc96f
Commit
075fc96f
authored
Jan 17, 2016
by
Roy Marmelstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding CI
parent
f6416068
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
0 deletions
+70
-0
.travis.yml
.travis.yml
+21
-0
build.sh
build.sh
+49
-0
No files found.
.travis.yml
0 → 100644
View file @
075fc96f
osx_image
:
xcode7.1
language
:
objective-c
env
:
global
:
-
LC_CTYPE=en_US.UTF-8
-
LANG=en_US.UTF-8
before_install
:
-
brew update || brew update
-
brew outdated xctool || brew upgrade xctool
-
gem install cocoapods
-
xcrun simctl list
install
:
echo "<3"
env
:
-
MODE=build
-
MODE=examples
script
:
./build.sh $MODE
# whitelist
branches
:
only
:
-
master
build.sh
0 → 100644
View file @
075fc96f
#!/bin/bash
# **** Update me when new Xcode versions are released! ****
PLATFORM
=
"platform=iOS Simulator,OS=9.1,name=iPhone 6s"
SDK
=
"iphonesimulator9.1"
# It is pitch black.
set
-e
function
trap_handler
()
{
echo
-e
"
\n\n
Oh no! You walked directly into the slavering fangs of a lurking grue!"
echo
"**** You have died ****"
exit
255
}
trap
trap_handler INT TERM EXIT
MODE
=
"
$1
"
if
[
"
$MODE
"
=
"build"
]
;
then
echo
"Building Zip."
xctool
\
-project
Zip.xcodeproj
\
-scheme
Zip
\
-sdk
"
$SDK
"
\
-destination
"
$PLATFORM
"
\
build
trap
- EXIT
exit
0
fi
if
[
"
$MODE
"
=
"examples"
]
;
then
echo
"Building and testing all Zip examples."
for
example
in
examples/
*
/
;
do
echo
"Building
$example
."
pod
install
--project-directory
=
$example
xctool
\
-workspace
"
${
example
}
Sample.xcworkspace"
\
-scheme
Sample
\
-sdk
"
$SDK
"
\
-destination
"
$PLATFORM
"
\
build
test
done
trap
- EXIT
exit
0
fi
echo
"Unrecognised mode '
$MODE
'."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment