config.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. version: 2
  2. jobs:
  3. build:
  4. macos:
  5. xcode: "10.1.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: Install Python
  23. command: |
  24. curl -OL https://www.python.org/ftp/python/3.7.2/python-3.7.2-macosx10.9.pkg
  25. - run: 'sudo installer -store -pkg "python-3.7.2-macosx10.9.pkg" -target /'
  26. - run:
  27. name: Build VLCKit
  28. command: |
  29. rake build:vlckit:ios
  30. rake build:vlckit:tv
  31. rake build:vlckit:mac
  32. - save_cache:
  33. key: libvlc-v4-{{ checksum "compileAndBuildVLCKit.sh" }}
  34. paths:
  35. - build
  36. - libvlc
  37. - Resources
  38. - run:
  39. name: Run Tests
  40. command: |
  41. rake test:ios
  42. rake test:ios_dynamic
  43. rake test:tv
  44. rake test:mac
  45. # - run:
  46. # name: Generate Coverage Reports
  47. # command: |
  48. # rake codecov:ios
  49. # rake codecov:ios_dynamic
  50. # rake codecov:tv
  51. # rake codecov:mac
  52. # - store_artifacts:
  53. # path: Tests/Coverage
  54. # destination: Coverage