You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.2 KiB

  1. test_task:
  2. use_compute_credits: true
  3. container:
  4. matrix:
  5. - image: erlang:23
  6. - image: erlang:22
  7. - image: erlang:21
  8. - image: erlang:20
  9. - image: erlang:19
  10. test_script: |
  11. ./bootstrap
  12. ./rebar3 ct
  13. osx_test_task:
  14. osx_instance:
  15. image: mojave-base
  16. install_script: brew install erlang
  17. test_script: |
  18. ./bootstrap
  19. ./rebar3 ct
  20. nightly_task:
  21. container:
  22. image: erlang:18
  23. depends_on:
  24. - test
  25. only_if: $BRANCH == "master"
  26. script: |
  27. apt-get update
  28. apt-get install -y s3cmd
  29. ./bootstrap
  30. s3cmd --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY put ./rebar3 s3://rebar3-nightly
  31. environment:
  32. ACCESS_KEY: ENCRYPTED[86c639224b3cfc11ae5dbd48b13de5ff77dd5c75f1bf1808ddbbb5bc60049f16885b4e2e3a7981376cac562f7a2d176b]
  33. SECRET_KEY: ENCRYPTED[189c3b982c2f846193bb34c3de86e0172b8a4c793699f64dc95bb9a1e6bbe83c252c77d37ea1503928aa9b41a3652ca3]
  34. # Removed while making pre-release -rc versions so they don't override the stable release in s3
  35. # release_task:
  36. # container:
  37. # image: erlang:18
  38. # depends_on:
  39. # - test
  40. # only_if: $CIRRUS_TAG != ''
  41. # script: |
  42. # apt-get update
  43. # apt-get install -y s3cmd
  44. # ./bootstrap
  45. # s3cmd --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY put ./rebar3 s3://rebar3
  46. # url_to_upload="https://uploads.github.com/repos/$CIRRUS_REPO_FULL_NAME/releases/$CIRRUS_RELEASE/assets?name=rebar3"
  47. # curl -X POST \
  48. # --data-binary @rebar3 \
  49. # --header "Authorization: token $GITHUB_TOKEN" \
  50. # --header "Content-Type: application/octet-stream" \
  51. # $url_to_upload
  52. # environment:
  53. # ACCESS_KEY: ENCRYPTED[86c639224b3cfc11ae5dbd48b13de5ff77dd5c75f1bf1808ddbbb5bc60049f16885b4e2e3a7981376cac562f7a2d176b]
  54. # SECRET_KEY: ENCRYPTED[189c3b982c2f846193bb34c3de86e0172b8a4c793699f64dc95bb9a1e6bbe83c252c77d37ea1503928aa9b41a3652ca3]
  55. # GITUB_TOKEN: ENCRYPTED[ff884c4b0a4f2833b6c22c1fd6398879d58634d0f521e7efbd33f045fb785417f24da953cfbdaee563698501691e5970]
  56. # Windows CI appears broken for now and never passes
  57. #windows_test_task:
  58. # windows_container:
  59. # image: cirrusci/windowsservercore:2019
  60. # os_version: 2019
  61. # install_script: choco install -y erlang
  62. # test_script: |
  63. # ./bootstrap
  64. # ./rebar3 ct