forked from Mindera/Alicerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (60 loc) · 1.81 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
64
65
66
language: swift
osx_image: xcode10
xcode_project: Alicerce.xcodeproj
addons:
homebrew:
brewfile: true
before_install:
- gem install cocoapods
install: true
cache:
directories:
- $HOME/Library/Caches/org.carthage.CarthageKit/dependencies
- Carthage/Build
jobs:
include:
- stage: Build + Test
env:
- XCODE_WORKSPACE=Alicerce.xcworkspace
- XCODE_PROJECT_NAME=Alicerce
- XCODE_SDK=iphonesimulator
- XCODE_ACTION='build test'
- XCODE_DESTINATION='platform=iOS Simulator,name=iPhone 6s,OS=latest'
- XCODE_DERIVED_DATA_PATH=build
- XCODE_SCHEME=Alicerce
before_script:
- carthage checkout
script:
- set -o pipefail
- xcodebuild $XCODE_ACTION -workspace "$XCODE_WORKSPACE" -scheme "$XCODE_SCHEME" -sdk "$XCODE_SDK" -destination "$XCODE_DESTINATION" -derivedDataPath "$XCODE_DERIVED_DATA_PATH" | xcpretty
after_success:
- bash <(curl -s https://codecov.io/bash) -D $XCODE_DERIVED_DATA_PATH -J "^$XCODE_SCHEME$"
- stage: Pod lib lint
script:
- pod repo update --silent
- pod lib lint --verbose
- stage: Deploy Github
script: skip
before_deploy:
- carthage build --no-skip-current --cache-builds
- carthage archive Alicerce
deploy:
- provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: Alicerce.framework.zip
skip_cleanup: true
overwrite: true
on:
repo: Mindera/Alicerce
branch: master
tags: true
- stage: Deploy Cocoapods
script: skip
deploy:
- provider: script
script: pod trunk push --allow-warnings
skip_cleanup: true
on:
repo: Mindera/Alicerce
branch: master
tags: true