Skip to content

Commit 683a137

Browse files
cbaker6TomWFox
andauthored
Add caching to CI's and fix docs (#1525)
* seperate docs from other deployment * combine docs with pods for deployment. Build takes forever * use travis image versions insteated of reinstalling gems * update lockfile * only one real gem neede, jazzy install it directly when needed * remove bundle exec * attempt to fix circle * add back rake to Gemfile because circle needs it along with jazzy, travis use jazzy from bundler also * fix circle * add back lockfile and use bundler cache * remove rake from gemfile * add back gem installs to see if it fixes rake on circle * remove travis, circle: pull from cache each build, save cache during jazzy since it's fast and runs first * fix * fix * fix * fix * add cache-key alias to circle * save cache after all * remove extra file that was added on accident * add back travis to push pods * add back travis to push docks and pod * add back bundle install * use travis for all releases * seperate builds in travis * add bundle install * update: * add back path to circle * get rid of bundle warning in circle * get rid of warning in travis about bundle * set config path for bundle in docs * add updated token for docs * remove travis builds from circle for faster tests * fix nightly * save cache after ios * bump xcode to 11.6 * clean up circle * change environment var Co-authored-by: Tom Fox <[email protected]>
1 parent 6da04e9 commit 683a137

File tree

5 files changed

+76
-74
lines changed

5 files changed

+76
-74
lines changed

.circleci/config.yml

+25-32
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
defaults: &defaults
22
macos:
3-
xcode: "11.4.1"
3+
xcode: "11.6.0"
44
shell: /bin/bash --login -eo pipefail
55
aliases:
6+
- &cache-pull
7+
keys:
8+
- gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
9+
- gem-cache-v1-{{ arch }}-{{ .Branch }}
10+
- gem-cache-v1
11+
- &cache-push
12+
key: gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
13+
paths:
14+
- vendor/bundle
615
- &prepare
716
|
817
git submodule update --init --recursive
918
sudo gem install bundler
19+
bundle config set path 'vendor/bundle'
1020
bundle install
1121
- &filter-only-master
1222
branches:
@@ -19,7 +29,9 @@ jobs:
1929
<<: *defaults
2030
steps:
2131
- checkout
32+
- restore_cache: *cache-pull
2233
- run: *prepare
34+
- save_cache: *cache-push
2335
- run: bundle exec rake test:ios
2436
- run: bash <(curl -s https://codecov.io/bash)
2537
- store_test_results:
@@ -28,7 +40,9 @@ jobs:
2840
<<: *defaults
2941
steps:
3042
- checkout
43+
- restore_cache: *cache-pull
3144
- run: *prepare
45+
- save_cache: *cache-push
3246
- run:
3347
name: "Create and set the default keychain"
3448
command: |
@@ -47,7 +61,9 @@ jobs:
4761
<<: *defaults
4862
steps:
4963
- checkout
64+
- restore_cache: *cache-pull
5065
- run: *prepare
66+
- save_cache: *cache-push
5167
- run: bundle exec rake test:facebook_utils:ios
5268
- run: bash <(curl -s https://codecov.io/bash)
5369
- store_test_results:
@@ -56,7 +72,9 @@ jobs:
5672
<<: *defaults
5773
steps:
5874
- checkout
75+
- restore_cache: *cache-pull
5976
- run: *prepare
77+
- save_cache: *cache-push
6078
- run: bundle exec rake test:twitter_utils:ios
6179
- run: bash <(curl -s https://codecov.io/bash)
6280
- store_test_results:
@@ -65,35 +83,21 @@ jobs:
6583
<<: *defaults
6684
steps:
6785
- checkout
86+
- restore_cache: *cache-pull
6887
- run: *prepare
88+
- save_cache: *cache-push
6989
- run: bundle exec rake test:parseui:all
7090
- run: bash <(curl -s https://codecov.io/bash)
7191
- store_test_results:
7292
path: build/reports
73-
deployment:
74-
<<: *defaults
75-
steps:
76-
- checkout
77-
- run: *prepare
78-
- run: bundle exec rake package:release
79-
jazzy:
80-
<<: *defaults
81-
steps:
82-
- checkout
83-
- run: *prepare
84-
- run: ./Scripts/jazzy.sh
8593
carthage:
8694
<<: *defaults
8795
steps:
8896
- checkout
97+
- restore_cache: *cache-pull
8998
- run: *prepare
99+
- save_cache: *cache-push
90100
- run: bundle exec rake test:carthage
91-
cocoapods:
92-
<<: *defaults
93-
steps:
94-
- checkout
95-
- run: *prepare
96-
- run: bundle exec rake test:cocoapods
97101

98102
workflows:
99103
version: 2
@@ -104,23 +108,12 @@ workflows:
104108
- facebook_utils
105109
- twitter_utils
106110
- parseui
107-
- jazzy
108-
- deployment
109-
- cocoapods:
110-
requires:
111-
- deployment
112111
- carthage:
113112
requires:
114-
- deployment
113+
- ios
115114
nightly:
116115
jobs:
117-
- deployment
118-
- cocoapods:
119-
requires:
120-
- deployment
121-
- carthage:
122-
requires:
123-
- deployment
116+
- carthage
124117
triggers:
125118
- schedule:
126119
cron: "0 1 * * *"

.travis.yml

+27-22
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,59 @@
11
language: objective-c
22
os: osx
3-
osx_image: xcode11.4.1
3+
osx_image: xcode11.6
44
branches:
55
only:
66
- master
77
- /^v?[0-9]+\.[0-9]+\.[0-9]+(-.*)?$/
88
cache:
9-
- cocoapods
10-
git:
11-
submodules: false
12-
13-
before_install:
14-
- git submodule update --init --recursive
9+
- bundle
1510

1611
jobs:
1712
include:
1813
- stage: release
1914
env: Deployment
20-
install: bundle install
15+
install:
16+
- bundle config set path 'vendor/bundle'
17+
- bundle install
2118
script:
22-
- ./Scripts/jazzy.sh
23-
- bundle exec rake package:release
19+
- bundle exec rake package:release
2420
deploy:
2521
- provider: releases
2622
token:
2723
secure: m7YayvmctH5lyHj13EV2j898P5xfEfN/ZvFm2gL/xveTNOGaET1O4ZmGmHApxC2QwIZvtwmO3U9pmB4XVVQ7kIlTsl01h84y8gx1XQqEKoQINcaVaNCsh9EdxAqj08aiwe/1dp8W8rI/ptOrxzWJDWcxKx5tMIbBzctGeL3GDKphVvD44s43oosqQCKzP+qHiI6rRRxu+0QccdbTagwd0X/yaLZ0IbTo35hWFEyJ6NfJnmCW/lNwWj86YksLCZx0eKdxUSQlIhnm0upTyowudt9bv8vSdEYi2AtRKoana/X53593O8RAVEc+S6NgMmeQ1/ZD1eDeyYLzN/z21EHb4yiwTnMUUhDBMTn8KKTiiSVDQOfAyRwtKF+1qN2iDr9Dh3A8+dCxOxJJpIPImZimt8KMCKB9WTtnJhvIoMCDpc8l29XM/oBxjCiBFxPClb9CZ74T5b+xl+yIqy2u8RiaZ1Va5vmWjMSXDsGHoZ0rJTOBkBBhyr+47yIw2VeY2z2q5hiALV3DnE5Esxyddhw7OXNZcvKriujnxcTOJwphm4XBMI/3rSH27uz7AaNdUHfTwaKqimPR06Kdv65hKmFuA5p/GuRdSYfYASvXYYrPjqKkst1FP6sWjJtpXvZIT/06RXDbGXZ6LB3TFHpOahPy8ID746OyBKgWzOB3ZCNmFCk=
2824
file_glob: true
2925
file: build/release/*
30-
cleanup: false
26+
skip_cleanup: true
3127
on:
3228
tags: true
3329
all_branches: true
30+
- stage: release
31+
env: Docs
32+
install:
33+
- bundle config set path 'vendor/bundle'
34+
- bundle install
35+
script:
36+
- ./Scripts/jazzy.sh
37+
deploy:
3438
- provider: pages
35-
cleanup: false
36-
token:
37-
secure: m7YayvmctH5lyHj13EV2j898P5xfEfN/ZvFm2gL/xveTNOGaET1O4ZmGmHApxC2QwIZvtwmO3U9pmB4XVVQ7kIlTsl01h84y8gx1XQqEKoQINcaVaNCsh9EdxAqj08aiwe/1dp8W8rI/ptOrxzWJDWcxKx5tMIbBzctGeL3GDKphVvD44s43oosqQCKzP+qHiI6rRRxu+0QccdbTagwd0X/yaLZ0IbTo35hWFEyJ6NfJnmCW/lNwWj86YksLCZx0eKdxUSQlIhnm0upTyowudt9bv8vSdEYi2AtRKoana/X53593O8RAVEc+S6NgMmeQ1/ZD1eDeyYLzN/z21EHb4yiwTnMUUhDBMTn8KKTiiSVDQOfAyRwtKF+1qN2iDr9Dh3A8+dCxOxJJpIPImZimt8KMCKB9WTtnJhvIoMCDpc8l29XM/oBxjCiBFxPClb9CZ74T5b+xl+yIqy2u8RiaZ1Va5vmWjMSXDsGHoZ0rJTOBkBBhyr+47yIw2VeY2z2q5hiALV3DnE5Esxyddhw7OXNZcvKriujnxcTOJwphm4XBMI/3rSH27uz7AaNdUHfTwaKqimPR06Kdv65hKmFuA5p/GuRdSYfYASvXYYrPjqKkst1FP6sWjJtpXvZIT/06RXDbGXZ6LB3TFHpOahPy8ID746OyBKgWzOB3ZCNmFCk=
38-
local_dir: docs/
39+
skip_cleanup: true
40+
github_token: $GITHUB_TOKEN
41+
local_dir: ./docs/
3942
on:
4043
all_branches: true
4144
tags: true
4245
- stage: release
4346
env: Cocoapods
4447
install:
48+
- bundle config set path 'vendor/bundle'
4549
- bundle install
4650
- bundle exec pod setup
47-
script: travis_wait bundle exec pod lib lint --allow-warnings
51+
script:
52+
- travis_wait bundle exec pod lib lint --allow-warnings
4853
deploy:
49-
provider: script
50-
cleanup: false
51-
script: travis_wait bundle exec pod trunk push Parse.podspec --allow-warnings
52-
on:
53-
tags: true
54-
all_branches: true
54+
- provider: script
55+
skip_cleanup: true
56+
script: travis_wait bundle exec pod trunk push Parse.podspec --allow-warnings
57+
on:
58+
tags: true
59+
all_branches: true

Gemfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ source 'https://rubygems.org'
22

33
gem 'plist'
44
gem 'naturally', '~> 1.3.2'
5-
gem 'jazzy', '~> 0.13.3'
6-
gem 'cocoapods', '~> 1.8.4'
5+
gem 'jazzy', '~> 0.13.5'
76
gem 'xcpretty'
87
gem 'rake'

Gemfile.lock

+22-17
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
CFPropertyList (3.0.2)
5-
activesupport (4.2.11.1)
5+
activesupport (4.2.11.3)
66
i18n (~> 0.7)
77
minitest (~> 5.1)
88
thread_safe (~> 0.3, >= 0.3.4)
99
tzinfo (~> 1.1)
10-
algoliasearch (1.27.2)
10+
algoliasearch (1.27.3)
1111
httpclient (~> 2.8, >= 2.8.3)
1212
json (>= 1.5.1)
1313
atomos (0.1.3)
1414
claide (1.0.3)
15-
cocoapods (1.8.4)
15+
cocoapods (1.9.3)
1616
activesupport (>= 4.0.2, < 5)
1717
claide (>= 1.0.2, < 2.0)
18-
cocoapods-core (= 1.8.4)
18+
cocoapods-core (= 1.9.3)
1919
cocoapods-deintegrate (>= 1.0.3, < 2.0)
2020
cocoapods-downloader (>= 1.2.2, < 2.0)
2121
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -30,15 +30,17 @@ GEM
3030
molinillo (~> 0.6.6)
3131
nap (~> 1.0)
3232
ruby-macho (~> 1.4)
33-
xcodeproj (>= 1.11.1, < 2.0)
34-
cocoapods-core (1.8.4)
33+
xcodeproj (>= 1.14.0, < 2.0)
34+
cocoapods-core (1.9.3)
3535
activesupport (>= 4.0.2, < 6)
3636
algoliasearch (~> 1.0)
3737
concurrent-ruby (~> 1.1)
3838
fuzzy_match (~> 2.0.4)
3939
nap (~> 1.0)
40+
netrc (~> 0.11)
41+
typhoeus (~> 1.0)
4042
cocoapods-deintegrate (1.0.4)
41-
cocoapods-downloader (1.3.0)
43+
cocoapods-downloader (1.4.0)
4244
cocoapods-plugins (1.0.0)
4345
nap
4446
cocoapods-search (1.0.0)
@@ -50,14 +52,16 @@ GEM
5052
colored2 (3.1.2)
5153
concurrent-ruby (1.1.6)
5254
escape (0.0.4)
53-
ffi (1.12.2)
55+
ethon (0.12.0)
56+
ffi (>= 1.3.0)
57+
ffi (1.13.1)
5458
fourflusher (2.3.1)
5559
fuzzy_match (2.0.4)
5660
gh_inspector (1.1.3)
5761
httpclient (2.8.3)
5862
i18n (0.9.5)
5963
concurrent-ruby (~> 1.0)
60-
jazzy (0.13.3)
64+
jazzy (0.13.5)
6165
cocoapods (~> 1.5)
6266
mustache (~> 1.1)
6367
open4
@@ -66,12 +70,12 @@ GEM
6670
sassc (~> 2.1)
6771
sqlite3 (~> 1.3)
6872
xcinvoke (~> 0.3.0)
69-
json (2.3.0)
73+
json (2.3.1)
7074
liferaft (0.0.6)
71-
minitest (5.14.0)
75+
minitest (5.14.1)
7276
molinillo (0.6.6)
7377
mustache (1.1.1)
74-
nanaimo (0.2.6)
78+
nanaimo (0.3.0)
7579
nap (1.1.0)
7680
naturally (1.3.2)
7781
netrc (0.11.0)
@@ -81,29 +85,30 @@ GEM
8185
redcarpet (3.5.0)
8286
rouge (2.0.7)
8387
ruby-macho (1.4.0)
84-
sassc (2.3.0)
88+
sassc (2.4.0)
8589
ffi (~> 1.9)
8690
sqlite3 (1.4.2)
8791
thread_safe (0.3.6)
92+
typhoeus (1.4.0)
93+
ethon (>= 0.9.0)
8894
tzinfo (1.2.7)
8995
thread_safe (~> 0.1)
9096
xcinvoke (0.3.0)
9197
liferaft (~> 0.0.6)
92-
xcodeproj (1.16.0)
98+
xcodeproj (1.17.1)
9399
CFPropertyList (>= 2.3.3, < 4.0)
94100
atomos (~> 0.1.3)
95101
claide (>= 1.0.2, < 2.0)
96102
colored2 (~> 3.1)
97-
nanaimo (~> 0.2.6)
103+
nanaimo (~> 0.3.0)
98104
xcpretty (0.3.0)
99105
rouge (~> 2.0.7)
100106

101107
PLATFORMS
102108
ruby
103109

104110
DEPENDENCIES
105-
cocoapods (~> 1.8.4)
106-
jazzy (~> 0.13.3)
111+
jazzy (~> 0.13.5)
107112
naturally (~> 1.3.2)
108113
plist
109114
rake

Scripts/jazzy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ mkdir -p ./Parse/Bolts # Create a temporary bolts folder
22
cp -R Carthage/Checkouts/Bolts-ObjC/Bolts/**/*.h ./Parse/Bolts # Copy bolts
33

44
ver=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Parse/Parse/Resources/Parse-iOS.Info.plist`
5-
jazzy \
5+
bundle exec jazzy \
66
--objc \
77
--clean \
88
--author "Parse Community" \

0 commit comments

Comments
 (0)