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

  1. const {head} = require('../lib/git');
  2. // https://semaphoreci.com/docs/available-environment-variables.html
  3. module.exports = {
  4. detect({env}) {
  5. return Boolean(env.SEMAPHORE);
  6. },
  7. configuration({env, cwd}) {
  8. const pr = env.PULL_REQUEST_NUMBER;
  9. const isPr = Boolean(pr);
  10. return {
  11. name: 'Semaphore',
  12. service: 'semaphore',
  13. commit: head({env, cwd}),
  14. build: env.SEMAPHORE_BUILD_NUMBER,
  15. branch: isPr ? undefined : env.BRANCH_NAME,
  16. pr,
  17. isPr,
  18. prBranch: isPr ? env.BRANCH_NAME : undefined,
  19. slug: env.SEMAPHORE_REPO_SLUG,
  20. root: env.SEMAPHORE_PROJECT_DIR,
  21. };
  22. },
  23. };