Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
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.

25 lines
690 B

  1. // https://devcenter.bitrise.io/builds/available-environment-variables/#exposed-by-bitriseio
  2. module.exports = {
  3. detect({env}) {
  4. return Boolean(env.BITRISE_IO);
  5. },
  6. configuration({env}) {
  7. const pr = env.BITRISE_PULL_REQUEST === 'false' ? undefined : env.BITRISE_PULL_REQUEST;
  8. const isPr = Boolean(pr);
  9. return {
  10. name: 'Bitrise',
  11. service: 'bitrise',
  12. commit: env.BITRISE_GIT_COMMIT,
  13. tag: env.BITRISE_GIT_TAG,
  14. build: env.BITRISE_BUILD_NUMBER,
  15. buildUrl: env.BITRISE_BUILD_URL,
  16. branch: isPr ? env.BITRISEIO_GIT_BRANCH_DEST : env.BITRISE_GIT_BRANCH,
  17. pr,
  18. isPr,
  19. prBranch: isPr ? env.BITRISE_GIT_BRANCH : undefined,
  20. slug: env.BITRISE_APP_SLUG,
  21. };
  22. },
  23. };