Skip to content

Instantly share code, notes, and snippets.

@luismachado
Created April 2, 2018 10:12
Show Gist options
  • Select an option

  • Save luismachado/131d1e21d587adb2b70ad7f4bf11ca71 to your computer and use it in GitHub Desktop.

Select an option

Save luismachado/131d1e21d587adb2b70ad7f4bf11ca71 to your computer and use it in GitHub Desktop.

Revisions

  1. luismachado created this gist Apr 2, 2018.
    48 changes: 48 additions & 0 deletions circle.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    # 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