Updated travis CI

This commit is contained in:
Alejandro Zalazar 2021-04-18 16:14:04 -03:00
parent a9367e8855
commit 91bc8497bb
1 changed files with 12 additions and 9 deletions

View File

@ -2,14 +2,6 @@ os: osx
osx_image: xcode12.2
language: swift
deploy:
provider: releases
install: gem install cocoapods -v '~> 1.7.0'
script: pod trunk push --verbose --allow-warnings | tee pod.log | ruby -e 'ARGF.each{ print "." }'
after_failure: cat pod.log | grep error
on:
tags: true
branches:
only:
- master
@ -17,6 +9,8 @@ branches:
stages:
- name: lint
if: NOT branch =~ ^\d+\.\d+\.\d+$
- name: deploy
if: branch =~ ^\d+\.\d+\.\d+$
jobs:
include:
- &pod
@ -25,4 +19,13 @@ jobs:
env: SWIFT=5.2
cache: cocoapods
install: gem install cocoapods -v '~> 1.7.0'
script: pod lib lint Kuru.podspec --allow-warnings --fail-fast --swift-version=$SWIFT
script: pod lib lint Kuru.podspec --allow-warnings --fail-fast --swift-version=$SWIFT
- name: '`pod trunk push`'
stage: deploy
install: gem install cocoapods -v '~> 1.7.0'
script: |
set -exo pipefail
pod lib lint Kuru.podspec --allow-warnings --fail-fast --swift-version=$SWIFT
pod trunk push --verbose --allow-warnings | tee pod.log | ruby -e 'ARGF.each{ print "." }'
after_failure: cat pod.log | grep error