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.

26 lines
758 B

  1. // https://buildkite.com/docs/builds/environment-variables
  2. module.exports = {
  3. detect({env}) {
  4. return Boolean(env.BUILDKITE);
  5. },
  6. configuration({env}) {
  7. const pr = env.BUILDKITE_PULL_REQUEST === 'false' ? undefined : env.BUILDKITE_PULL_REQUEST;
  8. const isPr = Boolean(pr);
  9. return {
  10. name: 'Buildkite',
  11. service: 'buildkite',
  12. build: env.BUILDKITE_BUILD_NUMBER,
  13. buildUrl: env.BUILDKITE_BUILD_URL,
  14. commit: env.BUILDKITE_COMMIT,
  15. tag: env.BUILDKITE_TAG,
  16. branch: isPr ? env.BUILDKITE_PULL_REQUEST_BASE_BRANCH : env.BUILDKITE_BRANCH,
  17. slug: `${env.BUILDKITE_ORGANIZATION_SLUG}/${env.BUILDKITE_PROJECT_SLUG}`,
  18. pr,
  19. isPr,
  20. prBranch: isPr ? env.BUILDKITE_BRANCH : undefined,
  21. root: env.BUILDKITE_BUILD_CHECKOUT_PATH,
  22. };
  23. },
  24. };