forked from devfile/api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
62 lines (62 loc) · 1.9 KB
/
devfile.yaml
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
57
58
59
60
61
62
metadata:
name: devfile-api
projects:
- name: api
source:
location: 'https://github.com/devfile/api.git'
type: git
clonePath: src/github.com/devfile/api
components:
- id: golang/go/latest
memoryLimit: 512Mi
type: chePlugin
alias: go-plugin
env:
- value: 'off'
name: GO111MODULE
- id: redhat/vscode-yaml/latest
type: chePlugin
- mountSources: true
command:
- /bin/sh
args:
- '-c'
- >-
while [ ! -f
${CHE_PROJECTS_ROOT}/src/github.com/devfile/api/.theia/settings.json
]; do echo "Waiting for the clone end" ; sleep 2; done; sleep 2 ; grep
-e '/src/github.com/devfile/api/schemas/'
${CHE_PROJECTS_ROOT}/.theia/settings.json > /dev/null ; if [ $? -ne 0 ];
then echo "Updating the yaml schema bindings" ; mkdir -p ${CHE_PROJECTS_ROOT}/.theia ; sed -e
's:/schemas/:/src/github.com/devfile/api/schemas/:g'
${CHE_PROJECTS_ROOT}/src/github.com/devfile/api/.theia/settings.json
> ${CHE_PROJECTS_ROOT}/.theia/settings.json; fi; sleep infinity
memoryLimit: 512Mi
type: dockerimage
image: 'quay.io/devfile/kubernetes-api-build-prerequisites:latest'
alias: tools
- id: eamodio/vscode-gitlens/latest
type: chePlugin
- id: eclipse/che-theia/latest
memoryLimit: 1024Mi
type: cheEditor
apiVersion: 1.0.0
commands:
- name: Build crds and schemas
actions:
- workdir: '${CHE_PROJECTS_ROOT}/src/github.com/devfile/api'
type: exec
command: ./build.sh
component: tools
- name: Fetch dependencies for Go LS
actions:
- workdir: '${CHE_PROJECTS_ROOT}/src/github.com/devfile/api'
type: exec
command: go mod vendor
component: tools
- name: Run tests
actions:
- workdir: '${CHE_PROJECTS_ROOT}/src/github.com/devfile/api'
type: exec
command: go test -v ./...
component: tools