This repository has been archived by the owner on Jun 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
93 lines (90 loc) · 3.27 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
language: objective-c
osx_image: xcode9.3
branches:
only:
- develop
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
cache:
directories:
- $HOME/Library/Caches/org.carthage.CarthageKit/dependencies
- Carthage
- vendor
xcode_workspace: RxCocoaNetworking.xcworkspace
before_install:
- bundle install --path vendor/bundle
- carthageversion=$(carthage version)
- if [ $carthageversion != "0.29.0" ]; then brew uninstall carthage; HOMEBREW_NO_AUTO_UPDATE=1 brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/45dd24d8dfa7a2fb69812c678ceb34be0c16e295/Formula/carthage.rb; fi
before_script:
- script/wiremock.sh &
- sleep 1
script:
- script/build
matrix:
include:
- stage: prepare carthage cache
before_script: skip
script:
- carthage bootstrap --no-use-binaries --cache-builds
- stage: logic tests
xcode_scheme: RxCocoaNetworking-macOS
after_success:
- bash <(curl -s https://codecov.io/bash)
- xcode_scheme: RxCocoaNetworking-iOS
- xcode_scheme: RxCocoaNetworking-tvOS
- xcode_scheme: RxCocoaNetworking-watchOS
- stage: Danger
script: bundle exec danger
- stage: package manager tests
before_script: skip
script:
- bundle exec pod repo update
- bundle exec pod lib lint
env:
- JOB=PODSPEC
- os: osx
language: generic
script:
- swift build
- swift test
env:
- JOB=SWIFTPM_DARWIN
- before_script: skip
script:
- carthage build --cache-builds --no-skip-current --platform macOS
- before_script: skip
script:
- carthage build --cache-builds --no-skip-current --platform iOS
- before_script: skip
script:
- carthage build --cache-builds --no-skip-current --platform tvOS
- before_script: skip
script:
- carthage build --cache-builds --no-skip-current --platform watchOS
- stage: Deploy GitHub
before_script: skip
script: skip
before_deploy:
- carthage build --no-skip-current --cache-builds
- carthage archive RxCocoaNetworking
deploy:
- provider: releases
api_key:
secure: TpLgXHD+SBT0JY8uo9FUBOtmeS3LC5A9EC1hxlnZRIXU1oMJ1VzhYCdiqQ7xRcFp9FngUc2XRWvHbXtzIx6YKuHd0/jAKZ5XFn8otwkrOpxYnZu3/I+xMlpKFeAoGEH2ILJlSQeglpYD/0Utd+EgkaAHs62143eAbiMoJvepEMOqRYzorpRTLd5aV+bYEXoggFmGOXy6SLTSIMHs/7mietIn0Fj9VD7BJej7Vazehzy3vd21rhrYHU5faJQjyx6oZ/Lx76fjLMozFpj6Bmq5jnyLdRk7UdvJxerfuT589QVHHlUuveJgMhUw0udz2qWn/dZXSlQANBjGy856Y6fdUUUcR31jfM+o8KR9WwW09Iq2jLmnQHKs2Qe5qnrQ6/FZS7zcxokE7sbOZ8rK8zU+i/DYistKfXI/B54vItqaq62VYFQGsmKjJdlMcwe3hDOEjsv3vHWtohngWi6JeuVuVRx0+yxIJZRhnkz3JSWA9UturlEdS0kN1jnuBm8tPFr1CF80YOKnFpltlm3LmTdYwn9//OS6PhVJT+nbZaW7aiLHUWf+7b95WRr8Bw+tGE8y/UgoS6LN5AByVLPcYfzF0JNEWAJtxXzlOTt5fXbD3N43exoC1gLBgR3bhs7uoOziYuRIWl3VmTuXIJbkPP7c5R3/sVdFNpcVP4hc8q/S+Cg=
file:
- RxCocoaNetworking.framework.zip
skip_cleanup: true
overwrite: true
on:
repo: gobetti/RxCocoaNetworking
tags: true
- stage: Deploy Cocoapods
before_script: skip
script: skip
env:
- JOB=PODSPEC
deploy:
- provider: script
script: bundle exec pod trunk push
skip_cleanup: true
on:
tags: true