config.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. version: 2
  2. jobs:
  3. build:
  4. macos:
  5. xcode: "9.3.0"
  6. environment:
  7. LC_ALL: en_US.UTF-8
  8. LANG: en_US.UTF-8
  9. shell: /bin/bash --login -eo pipefail
  10. steps:
  11. - checkout
  12. - restore_cache:
  13. key: v1-gems-{{ checksum "Gemfile.lock" }}
  14. - run: bundle check || bundle install --path .bundle
  15. - save_cache:
  16. key: v1-gems-{{ checksum "Gemfile.lock" }}
  17. paths:
  18. - .bundle
  19. - restore_cache:
  20. key: libvlc-v4-{{ checksum "compileAndBuildVLCKit.sh" }}
  21. - run:
  22. name: Build VLCKit
  23. command: |
  24. rake build:vlckit:ios
  25. rake build:vlckit:tv
  26. rake build:vlckit:mac
  27. - save_cache:
  28. key: libvlc-v4-{{ checksum "compileAndBuildVLCKit.sh" }}
  29. paths:
  30. - build
  31. - libvlc
  32. - Resources
  33. - run:
  34. name: Run Tests
  35. command: |
  36. rake test:ios
  37. rake test:ios_dynamic
  38. rake test:tv
  39. rake test:mac
  40. - run:
  41. name: Generate Coverage Reports
  42. command: |
  43. rake codecov:ios
  44. rake codecov:ios_dynamic
  45. rake codecov:tv
  46. rake codecov:mac
  47. - store_artifacts:
  48. path: Tests/Coverage
  49. destination: Coverage