Skip to content

Instantly share code, notes, and snippets.

@luismachado
Created April 2, 2018 10:12
Show Gist options
  • Save luismachado/131d1e21d587adb2b70ad7f4bf11ca71 to your computer and use it in GitHub Desktop.
Save luismachado/131d1e21d587adb2b70ad7f4bf11ca71 to your computer and use it in GitHub Desktop.
# iOS CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/ios-migrating-from-1-2/ for more details.
#
version: 2
jobs:
lint:
macos:
xcode: "9.2.0"
steps:
- checkout
- run:
name: Install Swiftlint
command: ./Scripts/install_swiftlint.sh
- run:
name: Lint
command: swiftlint
test:
macos:
xcode: "9.2.0"
steps:
- checkout
- run:
name: Update Dependencies
command: ./Scripts/update_dependencies.sh
- run:
name: Test
command: ./Scripts/test_and_coverage.sh
- run:
name: Codecov
command: bash <(curl -s https://codecov.io/bash) -t YOUR_TOKEN
workflows:
version: 2
build-and-test:
jobs:
- lint:
filters:
branches:
ignore:
- /^docs[-\/].*$/
- /^wip[-\/].*$/
- /^.*-docs$/
- /^.*-wip$/
- test:
requires:
- lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment