Skip to content

Commit

Permalink
Migrates to CircleCI 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
markpokornycos committed Sep 7, 2018
1 parent f8002b5 commit 6261eba
Show file tree
Hide file tree
Showing 109 changed files with 8,206 additions and 8 deletions.
57 changes: 57 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,57 @@
# config file version: 1.0.0
version: 2
jobs:
build:
working_directory: /Users/distiller/launchdarkly/hello-ios-swift/tmp
parallelism: 1 # controls the # of containers for the job. In theory, adding another container should halve the number of tests run in each container, but instead appears to run all tests in both containers.
shell: /bin/bash --login

environment:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8

macos:
xcode: '9.4.1'

steps:
- checkout

- run:
name: Make Output Directory
command: mkdir -p /Users/distiller/launchdarkly/hello-ios-swift/tmp/output

- run:
name: Show xcodebuild Version
command: xcodebuild -version

# Restore the dependency cache
- restore_cache:
keys:
- v1-dep-{{ .Branch }}- # This branch if available
- v1-dep-master- # Default branch if not

- run:
name: Check Gemfile Dependencies
command: 'bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3'

- run:
name: Show CocoaPods Version
command: bundle exec pod --version

# Save dependency cache
- save_cache:
key: v1-dep-{{ .Branch }}-{{ epoch }}
paths:
- vendor/bundle

- run:
name: Clean & Build
command: set -o pipefail && xcodebuild clean build -workspace 'hello-ios-swift.xcworkspace' -scheme 'hello-ios-swift' CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= | tee 'output/xcode_raw.log'

- run:
name: Copy XC Activity Log
command: find "${HOME}/Library/Developer/Xcode/DerivedData" -name '*.xcactivitylog' -exec cp {} output/xcactivitylog \; || true

- store_artifacts:
path: output
destination: artifacts
13 changes: 13 additions & 0 deletions .circleci/run-build-locally.sh
@@ -0,0 +1,13 @@
# A script that triggers a circleci build from the command line
# Script from https://circleci.com/docs/2.0/examples/#video-test-your-config-file-locally
# Usage: From the project folder (e.g. 'hello-ios-swift') run 'bash .circleci/run-build-locally.sh'
# Set the url to run in this format
# https://circleci.com/api/v1.1/project/<source, eg. github>/<user name>/<project name>/tree/<branch name>
# Dependencies:
# CIRCLE_TOKEN must be defined in the environment.
# See https://circleci.com/docs/2.0/managing-api-tokens/#creating-a-personal-api-token
curl --user ${CIRCLE_TOKEN}: \
--request POST \
--form config=@.circleci/config.yml \
--form notify=false \
https://circleci.com/api/v1.1/project/github/launchdarkly/hello-ios-swift/tree/master
5 changes: 1 addition & 4 deletions .gitignore
Expand Up @@ -44,16 +44,13 @@ playground.xcworkspace
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/
# Pods

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
@@ -0,0 +1,2 @@
source "https://rubygems.org"
gem 'cocoapods', '~>1.4.0'
76 changes: 76 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,76 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.0)
activesupport (4.2.10)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
atomos (0.1.3)
claide (1.0.2)
cocoapods (1.4.0)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 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.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.6.4)
nap (~> 1.0)
ruby-macho (~> 1.1)
xcodeproj (>= 1.5.4, < 2.0)
cocoapods-core (1.4.0)
activesupport (>= 4.0.2, < 6)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.2)
cocoapods-downloader (1.2.1)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.3.1)
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.1.0)
colored2 (3.1.2)
concurrent-ruby (1.0.5)
escape (0.0.4)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
minitest (5.11.3)
molinillo (0.6.6)
nanaimo (0.2.6)
nap (1.1.0)
netrc (0.11.0)
ruby-macho (1.2.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
xcodeproj (1.6.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.6)

PLATFORMS
ruby

DEPENDENCIES
cocoapods (~> 1.4.0)

BUNDLED WITH
1.16.1
11 changes: 11 additions & 0 deletions Pods/DarklyEventSource/LDEventSource/DarklyEventSource.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Pods/DarklyEventSource/LDEventSource/LDEventParser.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

111 changes: 111 additions & 0 deletions Pods/DarklyEventSource/LDEventSource/LDEventParser.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6261eba

Please sign in to comment.