config.yml 1.05 KB
Newer Older
Mike JS. Choi's avatar
Mike JS. Choi committed
1 2 3 4 5 6 7 8 9 10 11 12 13
version: 2

jobs:
  build:
    macos:
      xcode: "9.3.0"
    environment:
      LC_ALL: en_US.UTF-8
      LANG: en_US.UTF-8
    shell: /bin/bash --login -eo pipefail

    steps:
      - checkout
Mike JS. Choi's avatar
Mike JS. Choi committed
14 15 16 17 18 19 20
      - restore_cache:
          key: v1-gems-{{ checksum "Gemfile.lock" }}
      - run: bundle check || bundle install --path .bundle
      - save_cache:
          key: v1-gems-{{ checksum "Gemfile.lock" }}
          paths:
            - .bundle
Mike JS. Choi's avatar
Mike JS. Choi committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
      - restore_cache:
          key: libvlc-{{ checksum "compileAndBuildVLCKit.sh" }}
      - run:
          name: Build VLCKit
          command: |
            rake build:vlckit:ios
      - save_cache:
          key: libvlc-{{ checksum "compileAndBuildVLCKit.sh" }}
          paths:
            - build
            - libvlc
            - Resources
      - run:
          name: Run Tests
          command: |
            rake test:ios
Mike JS. Choi's avatar
Mike JS. Choi committed
37 38 39 40 41 42 43
      - run:
          name: Generate Coverage Reports
          command: |
            rake codecov:ios
      - store_artifacts:
          path: Tests/Coverage
          destination: Coverage
Mike JS. Choi's avatar
Mike JS. Choi committed
44