-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (38 loc) · 826 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
32
33
34
35
36
37
38
39
40
41
42
os: osx
osx_image: xcode11.5
language: swift
cache:
bundler: true
cocoapods: true
before_install:
- gem install cocoapods
- gem install fastlane # for running tests via scan
- pod --version
- pod repo update
install:
- bundle install
- cd Example; pod install; cd ..;
env:
global:
# COCOAPODS_TRUNK_TOKEN - access token to deploy to cocoapods.
jobs:
include:
- stage: commit
script:
- fastlane scan
- pod lib lint --allow-warnings
- stage: pr
script:
- fastlane scan
- pod lib lint --allow-warnings
# - danger --fail-on-errors=true
- stage: deploy
script:
- pod trunk push
stages:
- name: commit
if: type IN (push) AND tag IS blank
- name: pr
if: type IN (pull_request)
- name: deploy
if: tag IS present