-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
63 lines (58 loc) · 2.01 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
osx_image: xcode8.1
matrix:
include:
# For iOS builds:
- language: swift
os: osx
env: TARGET="iOS" SDK="iphonesimulator10.1" DEVICE="iPhone SE" VERSION=10.0
- language: swift
os: osx
env: TARGET="iOS" SDK="iphonesimulator10.1" DEVICE="iPhone 5s" VERSION=10.0
- language: swift
os: osx
env: TARGET="iOS" SDK="iphonesimulator10.1" DEVICE="iPhone 6s" VERSION=10.0
- language: swift
os: osx
env: TARGET="iOS" SDK="iphonesimulator10.1" DEVICE="iPhone 6s Plus" VERSION=10.0
- language: swift
os: osx
env: TARGET="iOS" SDK="iphonesimulator10.1" DEVICE="iPhone 7" VERSION=10.1
- language: swift
os: osx
env: TARGET="iOS" SDK="iphonesimulator10.1" DEVICE="iPhone 7 Plus" VERSION=10.1
# For C/C++ library builds:
- language: cpp
os: osx
compiler: clang
env: TARGET="Lib"
- language: cpp
os: linux
compiler: gcc
env: TARGET="Lib"
addons:
apt:
sources:
- george-edison55-precise-backports
packages:
- cmake
- cmake-data
before_install:
- if [[ $TARGET == "iOS" ]] ; then
gem install cocoapods --no-rdoc --no-ri;
pod install --project-directory=GroupLockiOS --repo-update;
fi
- if [[ $TARGET == "Lib" && $TRAVIS_OS_NAME == "osx" ]] ; then
brew install cmake;
fi
script:
- if [[ $TARGET == "iOS" ]] ; then
set -o pipefail && xcodebuild build test -workspace GroupLockiOS/GroupLock.xcworkspace -scheme GroupLock -sdk $SDK -destination "OS=$VERSION,name=$DEVICE" -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty -c;
sleep 10;
set -o pipefail && xcodebuild test -workspace GroupLockiOS/GroupLock.xcworkspace -scheme GroupLock -sdk $SDK -destination "OS=$VERSION,name=$DEVICE" -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty -c;
fi
- if [[ $TARGET == "Lib" ]] ; then
cd GroupLockCrypto/Build && cmake .. && make;
./glcrypto_TestRunner;
fi
after_success:
- bash <(curl -s https://codecov.io/bash)