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

const {head} = require('../lib/git');
// https://semaphoreci.com/docs/available-environment-variables.html
module.exports = {
detect({env}) {
return Boolean(env.SEMAPHORE);
},
configuration({env, cwd}) {
const pr = env.PULL_REQUEST_NUMBER;
const isPr = Boolean(pr);
return {
name: 'Semaphore',
service: 'semaphore',
commit: head({env, cwd}),
build: env.SEMAPHORE_BUILD_NUMBER,
branch: isPr ? undefined : env.BRANCH_NAME,
pr,
isPr,
prBranch: isPr ? env.BRANCH_NAME : undefined,
slug: env.SEMAPHORE_REPO_SLUG,
root: env.SEMAPHORE_PROJECT_DIR,
};
},
};