-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
36 lines (35 loc) · 1.46 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
# Based on this: https://github.com/antitypical/Result/commit/172dc632670d17b93d1923a212fc46f39dfbdd45
matrix:
include:
- script:
# Building all schemes
- xctool build -scheme "Result:All" -configuration Debug EXTRA=ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- xctool build -scheme "Result:All" -configuration Release EXTRA=ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
# Linting pod
- pod lib lint
env: JOB=Xcode
os: osx
osx_image: xcode7.3
language: objective-c
before_install:
# Installing xctool only if it's not already installed
- if [[ $(brew ls --versions xctool) ]]; then echo "xctool is installed"; else brew update && brew install xctool; fi
- script:
- echo $PATH
- swift build -c debug && swift build -c release
env: - JOB=Linux
sudo: required
dist: trusty
language: generic
before_install:
# Getting keys
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
- cd ..
# Getting Swift build for linux
- wget https://swift.org/builds/$SWIFT_BRANCH/ubuntu1404/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu14.04.tar.gz
# Unpacking it
- tar xzf $SWIFT_VERSION-ubuntu14.04.tar.gz
# Setting up bin path
- export PATH="${PWD}/${SWIFT_VERSION}-ubuntu14.04/usr/bin:${PATH}"
# Going in folder
- cd Result