UNPKG

433 BJavaScriptView Raw
1var git = require('../git')
2
3module.exports = {
4 detect: function() {
5 return !!process.env.DRONE
6 },
7
8 configuration: function() {
9 console.log(' Drone.io CI Detected')
10 return {
11 service: 'drone.io',
12 build: process.env.DRONE_BUILD_NUMBER,
13 commit: git.head(),
14 build_url: process.env.DRONE_BUILD_URL,
15 branch: process.env.DRONE_BRANCH,
16 root: process.env.DRONE_BUILD_DIR,
17 }
18 },
19}