-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitpod.yml.tpl
executable file
·56 lines (47 loc) · 1.34 KB
/
.gitpod.yml.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env node
let _ = require('lodash-firecloud');
let yaml = require('js-yaml');
let vscodeExtensions = require('./.vscode/extensions.json');
// see https://www.gitpod.io/docs/config-gitpod-file
let config = {
// image: process.env.YP_DOCKER_CI_IMAGE
// image: 'ubuntu:20.04',
image: 'ysoftwareab/yp-ubuntu-20.04-common:latest',
github: {
prebuilds: {
master: true,
branches: false,
pullRequests: false,
pullRequestsFromForks: false,
addCheck: false,
addComment: false,
addBadge: true
}
},
vscode: {
extensions: vscodeExtensions.recommendations
},
// NOTE 'make bootstrap' would be nice because
// the branch's bootstrap might be out of sync with ysoftwareab/yp-ubuntu-20.04-common:latest
// NOTE 'gp env PATH=$PATH' in order for vscode to find brew executable e.g. shellcheck
// TODO should also modify the shell's rc file to source sh/dev.inc.sh
tasks: [{
// init: _.join([
// 'source sh/dev.inc.sh',
// 'make bootstrap'
// ], '\n'),
command: _.join([
'source sh/dev.inc.sh',
'gp env PATH=$PATH',
'gp open README.md',
'make help'
], '\n')
}]
};
if (require.main === module) {
let ymlConfig = yaml.dump(config);
// eslint-disable-next-line no-console
console.log(ymlConfig);
} else {
module.exports = config;
}