forked from bineshtj/JOSE-ECDH-ES-Swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (23 loc) · 881 Bytes
/
.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
language: objective-c
osx_image: xcode11.6
env:
matrix:
- TEST_SDK=iphonesimulator13.6 OS=13.6 NAME='iPhone 11' CAN_DEPLOY=YES
- TEST_SDK=iphonesimulator13.6 OS=10.3.1 NAME='iPhone 6s'
cache: cocoapods
podfile: Example/Podfile
before_install:
- gem install xcpretty
- gem install cocoapods -v $(cat Example/Podfile.lock |grep COCOAPODS |awk '{print $2}')
- pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/ECDHESSwift.xcworkspace -scheme ECDHESSwift-Example -sdk $TEST_SDK -destination "platform=iOS Simulator,OS=$OS,name=$NAME" ONLY_ACTIVE_ARCH=YES | xcpretty
- pod lib lint
after_success:
- bash <(curl -s https://codecov.io/bash) -J 'ECDHESSwift'
deploy:
provider: script
script: ./scripts/pod_trunk_push.sh
on:
tags: true
condition: $CAN_DEPLOY = YES