Commit eb7370c1 authored by Danielle Tomlinson's avatar Danielle Tomlinson

Fix linux

parent 20c171b9
version: 2.0 version: 2.0
refrences: refrences:
steps: &steps macos_steps: &steps
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- v1-gems-{{ checksum "Gemfile.lock" }} - v1-gems-{{ checksum "Gemfile.lock" }}-{{ arch}}
- run: - run:
name: Fetch CocoaPods Specs name: Fetch CocoaPods Specs
command: | command: |
...@@ -31,17 +31,30 @@ refrences: ...@@ -31,17 +31,30 @@ refrences:
- run: bundle exec rake spec:all - run: bundle exec rake spec:all
jobs: jobs:
warm-cache: linux-cache:
docker:
- image: circleci/ruby:2.4
steps:
- checkout
- restore_cache:
keys:
- v1-gems-{{ checksum "Gemfile.lock" }}-{{ arch }}
- run: bundle check || bundle install --path .bundle
- save_cache:
key: v1-gems-{{ checksum "Gemfile.lock" }}-{{ arch }}
paths:
- ".bundle"
macos-cache:
macos: macos:
xcode: "9.2.0" xcode: "9.2.0"
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- v1-gems-{{ checksum "Gemfile.lock" }} - v1-gems-{{ checksum "Gemfile.lock" }}-{{ arch }}
- run: bundle check || bundle install --path .bundle - run: bundle check || bundle install --path .bundle
- save_cache: - save_cache:
key: v1-gems-{{ checksum "Gemfile.lock" }} key: v1-gems-{{ checksum "Gemfile.lock" }}-{{ arch }}
paths: paths:
- ".bundle" - ".bundle"
...@@ -51,24 +64,28 @@ jobs: ...@@ -51,24 +64,28 @@ jobs:
environment: environment:
COCOAPODS_CI_TASKS: EXAMPLES COCOAPODS_CI_TASKS: EXAMPLES
<<: *steps <<: *steps
specs-linux_2.4: specs-linux_2.4:
docker: docker:
- image: circleci/ruby:2.4 - image: circleci/ruby:2.4
environment: environment:
COCOAPODS_CI_TASKS: SPECS COCOAPODS_CI_TASKS: SPECS
<<: *steps <<: *steps
specs-macos_system: specs-macos_system:
macos: macos:
xcode: "9.2.0" xcode: "9.2.0"
environment: environment:
COCOAPODS_CI_TASKS: SPECS COCOAPODS_CI_TASKS: SPECS
<<: *steps <<: *steps
lint: lint:
macos: macos:
xcode: "9.2.0" xcode: "9.2.0"
environment: environment:
COCOAPODS_CI_TASKS: LINT COCOAPODS_CI_TASKS: LINT
<<: *steps <<: *steps
danger: danger:
docker: docker:
- image: dantoml/danger - image: dantoml/danger
...@@ -80,18 +97,21 @@ workflows: ...@@ -80,18 +97,21 @@ workflows:
version: 2 version: 2
build-test: build-test:
jobs: jobs:
- warm-cache - macos-cache
- danger
- lint:
requires:
- warm-cache
- specs-macos_system: - specs-macos_system:
requires: requires:
- warm-cache - macos-cache
- specs-linux_2.4:
requires:
- warm-cache
- examples: - examples:
requires: requires:
- warm-cache - macos-cache
- linux-cache
- lint:
requires:
- linux-cache
- specs-linux_2.4:
requires:
- linux-cache
- danger
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment