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.

24 lines
597 B

  1. // https://readme.drone.io/reference/environ
  2. module.exports = {
  3. detect({env}) {
  4. return Boolean(env.DRONE);
  5. },
  6. configuration({env}) {
  7. const isPr = env.DRONE_BUILD_EVENT === 'pull_request';
  8. return {
  9. name: 'Drone',
  10. service: 'drone',
  11. commit: env.DRONE_COMMIT_SHA,
  12. tag: env.DRONE_TAG,
  13. build: env.DRONE_BUILD_NUMBER,
  14. branch: isPr ? env.DRONE_TARGET_BRANCH : env.DRONE_BRANCH,
  15. job: env.DRONE_JOB_NUMBER,
  16. pr: env.DRONE_PULL_REQUEST,
  17. isPr,
  18. prBranch: isPr ? env.DRONE_SOURCE_BRANCH : undefined,
  19. slug: `${env.DRONE_REPO_OWNER}/${env.DRONE_REPO_NAME}`,
  20. };
  21. },
  22. };