-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
45 lines (33 loc) · 1.56 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: objective-c
# These Travis settings are specific to `language: objective-c`
xcode_workspace: Toast.xcworkspace
xcode_scheme: Toast
xcode_sdk: iphonesimulator
env:
# global environment variables apply to every build in the build matrix
global:
# CocoaPods requires the environment to be using UTF-8 encoding.
- LANG=en_US.UTF-8
# Only enable tests if this is a pull request. You are welcome to modify the logic here, but the result
# must be to assign a valid xctool build action to TWT_XCODE_BUILD_ACTION
- TWT_XCODE_BUILD_ACTION=$(if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then echo 'test'; else echo 'build'; fi)
before_install:
# Set the Ruby version to work around https://github.com/travis-ci/travis-ci/issues/2152
# This also makes it so that we can specify the ruby version in a single place:
# .ruby-version. This command cannot go in before_install.sh because it works by
# modifying the environment
- rvm use .
# Run travis-scripts/before_install.sh
# You can modify its contents to customize the setup that is performed here
- bash -v travis-scripts/before_install.sh
install:
# Run travis-scripts/install.sh
# You can modify its contents to customize the setup that is performed here
- chmod +x ./travis-scripts/install.sh
- ./travis-scripts/install.sh
# Run travis-scripts/install.sh
# You can modify its contents to customize the setup that is performed here
install: bash -v travis-scripts/install.sh
# Run travis-scripts/script.sh
# You can modify its contents if needed
script: bash -v travis-scripts/script.sh