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
618 B

  1. // https://codefresh.io/docs/docs/codefresh-yaml/variables#system-provided-variables
  2. module.exports = {
  3. detect({env}) {
  4. return Boolean(env.CF_BUILD_ID);
  5. },
  6. configuration({env}) {
  7. const pr = env.CF_PULL_REQUEST_NUMBER;
  8. const isPr = Boolean(pr);
  9. return {
  10. name: 'Codefresh',
  11. service: 'codefresh',
  12. commit: env.CF_REVISION,
  13. build: env.CF_BUILD_ID,
  14. buildUrl: env.CF_BUILD_URL,
  15. branch: isPr ? env.CF_PULL_REQUEST_TARGET : env.CF_BRANCH,
  16. pr,
  17. isPr,
  18. prBranch: isPr ? env.CF_BRANCH : undefined,
  19. slug: `${env.CF_REPO_OWNER}/${env.CF_REPO_NAME}`,
  20. root: env.CF_VOLUME_PATH,
  21. };
  22. },
  23. };