Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Setup circle and fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
JP Wright committed Jan 30, 2018
1 parent cbc1505 commit 29a587b
Show file tree
Hide file tree
Showing 49 changed files with 739 additions and 156 deletions.
67 changes: 67 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,67 @@
# iOS CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/ios-migrating-from-1-2/ for more details
#
version: 2
jobs:
build:

# Specify the Xcode version to use
macos:
xcode: "9.2.0"

shell: /bin/bash --login -o pipefail

working_directory: /Users/distiller/project
environment:
FL_OUTPUT_DIR: /Users/distiller/project/output
FASTLANE_LANE: test

steps:
- checkout

# Install RubyGems from cache
- restore_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
- run: bundle check || bundle install --path vendor/bundle
- save_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle

# Install Cocoapods
- run:
name: Fetch CocoaPods Specs
command: |
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
- run:
name: Install CocoaPods
command: bundle exec pod install

# Build the app and run tests
- run:
name: Build and run tests
command: bundle exec fastlane $FASTLANE_LANE
environment:
SCAN_DEVICE: iPhone 6


- run:
command: cp $FL_OUTPUT_DIR/scan/report.junit $FL_OUTPUT_DIR/scan/results.xml
when: always
- store_artifacts:
path: /Users/distiller/project/output
- store_test_results:
path: /Users/distiller/project/output/scan
# # Collect XML test results data to show in the UI,
# # and save the same XML files under test-results folder
# # in the Artifacts tab
# - store_test_results:
# path: test_output/report.xml
# - store_artifacts:
# path: /tmp/test-results
# destination: scan-test-results
# - store_artifacts:
# path: ~/Library/Logs/scan
# destination: scan-logs

5 changes: 5 additions & 0 deletions .gitignore
Expand Up @@ -4,3 +4,8 @@ Pods/

# Xcode
xcuserdata


# Fastlane
/test_output

1 change: 1 addition & 0 deletions .ruby-version
@@ -0,0 +1 @@
ruby-2.4
3 changes: 3 additions & 0 deletions Gemfile
@@ -1,7 +1,10 @@
#!/usr/bin/ruby

source 'https://rubygems.org'

gem 'cocoapods'
gem 'cocoapods-deintegrate'
gem 'cocoapods-clean'
gem 'dotenv'
gem 'fastlane'

160 changes: 142 additions & 18 deletions Gemfile.lock
@@ -1,67 +1,190 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.5)
activesupport (4.2.9)
CFPropertyList (2.3.6)
activesupport (4.2.10)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
babosa (1.0.2)
claide (1.0.2)
cocoapods (1.3.1)
cocoapods (1.4.0)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.3.1)
cocoapods-deintegrate (>= 1.0.1, < 2.0)
cocoapods-core (= 1.4.0)
cocoapods-deintegrate (>= 1.0.2, < 2.0)
cocoapods-downloader (>= 1.1.3, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.2.0, < 2.0)
cocoapods-trunk (>= 1.3.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (~> 2.0.1)
gh_inspector (~> 1.0)
molinillo (~> 0.5.7)
molinillo (~> 0.6.4)
nap (~> 1.0)
ruby-macho (~> 1.1)
xcodeproj (>= 1.5.1, < 2.0)
xcodeproj (>= 1.5.4, < 2.0)
cocoapods-clean (0.0.1)
cocoapods-core (1.3.1)
cocoapods-core (1.4.0)
activesupport (>= 4.0.2, < 6)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.1)
cocoapods-deintegrate (1.0.2)
cocoapods-downloader (1.1.3)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.2.0)
cocoapods-trunk (1.3.0)
nap (>= 0.8, < 2.0)
netrc (= 0.7.8)
netrc (~> 0.11)
cocoapods-try (1.1.0)
colored (1.2)
colored2 (3.1.2)
commander-fastlane (4.4.5)
highline (~> 1.7.2)
concurrent-ruby (1.0.5)
declarative (0.0.10)
declarative-option (0.1.0)
domain_name (0.5.20170404)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.2.1)
escape (0.0.4)
excon (0.60.0)
faraday (0.14.0)
multipart-post (>= 1.2, < 3)
faraday-cookie_jar (0.0.6)
faraday (>= 0.7.4)
http-cookie (~> 1.0.0)
faraday_middleware (0.12.2)
faraday (>= 0.7.4, < 1.0)
fastimage (2.1.1)
fastlane (2.79.0)
CFPropertyList (>= 2.3, < 3.0.0)
addressable (>= 2.3, < 3.0.0)
babosa (>= 1.0.2, < 2.0.0)
bundler (>= 1.12.0, < 2.0.0)
colored
commander-fastlane (>= 4.4.5, < 5.0.0)
dotenv (>= 2.1.1, < 3.0.0)
excon (>= 0.45.0, < 1.0.0)
faraday (~> 0.9)
faraday-cookie_jar (~> 0.0.6)
faraday_middleware (~> 0.9)
fastimage (>= 2.1.0, < 3.0.0)
gh_inspector (>= 1.0.1, < 2.0.0)
google-api-client (>= 0.13.1, < 0.14.0)
highline (>= 1.7.2, < 2.0.0)
json (< 3.0.0)
mini_magick (~> 4.5.1)
multi_json
multi_xml (~> 0.5)
multipart-post (~> 2.0.0)
plist (>= 3.1.0, < 4.0.0)
public_suffix (~> 2.0.0)
rubyzip (>= 1.1.0, < 2.0.0)
security (= 0.1.3)
slack-notifier (>= 2.0.0, < 3.0.0)
terminal-notifier (>= 1.6.2, < 2.0.0)
terminal-table (>= 1.4.5, < 2.0.0)
tty-screen (>= 0.6.3, < 1.0.0)
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.5.2, < 2.0.0)
xcpretty (>= 0.2.4, < 1.0.0)
xcpretty-travis-formatter (>= 0.0.3)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
gh_inspector (1.0.3)
i18n (0.8.6)
minitest (5.10.3)
molinillo (0.5.7)
google-api-client (0.13.6)
addressable (~> 2.5, >= 2.5.1)
googleauth (~> 0.5)
httpclient (>= 2.8.1, < 3.0)
mime-types (~> 3.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.0)
googleauth (0.6.2)
faraday (~> 0.12)
jwt (>= 1.4, < 3.0)
logging (~> 2.0)
memoist (~> 0.12)
multi_json (~> 1.11)
os (~> 0.9)
signet (~> 0.7)
highline (1.7.10)
http-cookie (1.0.3)
domain_name (~> 0.5)
httpclient (2.8.3)
i18n (0.9.3)
concurrent-ruby (~> 1.0)
json (2.1.0)
jwt (2.1.0)
little-plugger (1.1.4)
logging (2.2.2)
little-plugger (~> 1.1)
multi_json (~> 1.10)
memoist (0.16.0)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_magick (4.5.1)
minitest (5.11.3)
molinillo (0.6.4)
multi_json (1.13.1)
multi_xml (0.6.0)
multipart-post (2.0.0)
nanaimo (0.2.3)
nap (1.1.0)
netrc (0.7.8)
netrc (0.11.0)
os (0.9.6)
plist (3.4.0)
public_suffix (2.0.5)
representable (3.0.4)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
uber (< 0.2.0)
retriable (3.1.1)
rouge (2.0.7)
ruby-macho (1.1.0)
rubyzip (1.2.1)
security (0.1.3)
signet (0.8.1)
addressable (~> 2.3)
faraday (~> 0.9)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
slack-notifier (2.3.2)
terminal-notifier (1.8.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
tzinfo (1.2.3)
tty-cursor (0.5.0)
tty-screen (0.6.4)
tty-spinner (0.8.0)
tty-cursor (>= 0.5.0)
tzinfo (1.2.4)
thread_safe (~> 0.1)
xcodeproj (1.5.1)
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.4)
unicode-display_width (1.3.0)
word_wrap (1.0.0)
xcodeproj (1.5.4)
CFPropertyList (~> 2.3.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.3)
xcpretty (0.2.8)
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.0)
xcpretty (~> 0.2, >= 0.0.7)

PLATFORMS
ruby
Expand All @@ -71,6 +194,7 @@ DEPENDENCIES
cocoapods-clean
cocoapods-deintegrate
dotenv
fastlane

BUNDLED WITH
1.16.1
2 changes: 1 addition & 1 deletion Podfile
Expand Up @@ -8,7 +8,7 @@ target 'the-example-app.swift' do
pod 'Firebase/Core'
pod 'markymark', :git => 'https://github.com/M2Mobi/Marky-Mark.git', :branch => 'master'
pod 'AlamofireImage', '~> 3.3'
pod 'DeepLinkKit', :git => 'https://github.com/button/DeepLinkKit/', :tag => '1.5.0'
pod 'DeepLinkKit'

target 'the-example-app.swiftTests' do
inherit! :search_paths
Expand Down
26 changes: 10 additions & 16 deletions Podfile.lock
Expand Up @@ -4,11 +4,11 @@ PODS:
- Alamofire (~> 4.5)
- Contentful (1.0.0):
- Interstellar (~> 2.1.0)
- DeepLinkKit (1.5.0)
- Firebase/Core (4.8.1):
- FirebaseAnalytics (= 4.0.7)
- DeepLinkKit (1.4.0)
- Firebase/Core (4.8.2):
- FirebaseAnalytics (= 4.0.9)
- FirebaseCore (= 4.0.14)
- FirebaseAnalytics (4.0.7):
- FirebaseAnalytics (4.0.9):
- FirebaseCore (~> 4.0)
- FirebaseInstanceID (~> 2.0)
- GoogleToolboxForMac/NSData+zlib (~> 2.1)
Expand Down Expand Up @@ -37,23 +37,17 @@ PODS:
DEPENDENCIES:
- AlamofireImage (~> 3.3)
- Contentful (~> 1.0.0)
- DeepLinkKit (from `https://github.com/button/DeepLinkKit/`, tag `1.5.0`)
- DeepLinkKit
- Firebase/Core
- markymark (from `https://github.com/M2Mobi/Marky-Mark.git`, branch `master`)
- Nimble

EXTERNAL SOURCES:
DeepLinkKit:
:git: https://github.com/button/DeepLinkKit/
:tag: 1.5.0
markymark:
:branch: master
:git: https://github.com/M2Mobi/Marky-Mark.git

CHECKOUT OPTIONS:
DeepLinkKit:
:git: https://github.com/button/DeepLinkKit/
:tag: 1.5.0
markymark:
:commit: 2d734a4a7f35a812f9adbce79cffbff410da332e
:git: https://github.com/M2Mobi/Marky-Mark.git
Expand All @@ -62,9 +56,9 @@ SPEC CHECKSUMS:
Alamofire: f41a599bd63041760b26d393ec1069d9d7b917f4
AlamofireImage: 2e784dc5d00f04903a52c1d169181469c805c3df
Contentful: 27f1d06787ecf37b8e68f01bd87417e9ffe94720
DeepLinkKit: 98a26f2c5cf4c86b97c1170cdf3737ae49a3a50c
Firebase: 2721056b8885eef90233b03f37be64358d35d262
FirebaseAnalytics: 617afa8c26b57a0c3f11361b248bc9e17bfd8dfd
DeepLinkKit: bffd3b5e51549222f974d631b4e0e7484600b9d8
Firebase: 7d3b8cd837ad9fcd391657734c0d56dab8e9a5a3
FirebaseAnalytics: 388b630c15713f5dbf364071f5f3d6077fb52f4e
FirebaseCore: 2e0b98fb2d64ca8140136beff15772bdd14d2dd7
FirebaseInstanceID: 81df5805a08001e69138664bdd02c6719a9ac80f
GoogleToolboxForMac: 2501e2ad72a52eb3dfe7bd9aee7dad11b858bd20
Expand All @@ -73,6 +67,6 @@ SPEC CHECKSUMS:
nanopb: 5601e6bca2dbf1ed831b519092ec110f66982ca3
Nimble: 7f5a9c447a33002645a071bddafbfb24ea70e0ac

PODFILE CHECKSUM: e71194a40c4a782a233c88c7c86203c800f33793
PODFILE CHECKSUM: 0a5eea05b21bd89c60c068bc64d5587f36f20dd7

COCOAPODS: 1.3.1
COCOAPODS: 1.4.0
7 changes: 7 additions & 0 deletions fastlane/Appfile
@@ -0,0 +1,7 @@
app_identifier "the-example-app.swift" # The bundle identifier of your app
apple_id "jp@contentful.com" # Your Apple email address

team_id "RWJ5E97L7R" # Developer Portal Team ID

# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md
10 changes: 10 additions & 0 deletions fastlane/Deliverfile
@@ -0,0 +1,10 @@
###################### More Options ######################
# If you want to have even more control, check out the documentation
# https://github.com/fastlane/fastlane/blob/master/deliver/Deliverfile.md


###################### Automatically generated ######################
# Feel free to remove the following line if you use fastlane (which you should)

app_identifier "the-example-app.swift" # The bundle identifier of your app
username "jp@contentful.com" # your Apple ID user

0 comments on commit 29a587b

Please sign in to comment.