-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.gitpod.yml
104 lines (92 loc) · 2.39 KB
/
.gitpod.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
additionalRepositories:
- url: https://github.com/mattermost/mattermost
ports:
- port: 8065
description: for Mattermost instance
onOpen: open-browser
visibility: public
- port: 9000
description: for Mattermost + Gitpod welcome message
onOpen: ignore
- port: 6080
description: for noVNC instance (Cypress)
onOpen: notify
- port: 5432
onOpen: ignore
- port: 5900
onOpen: ignore
image:
file: .gitpod.Dockerfile
github:
prebuilds:
master: true
pullRequests: true
addCheck: false
vscode:
extensions:
- golang.go
- dbaeumer.vscode-eslint
workspaceLocation: mattermost-gitpod-config/mattermost.code-workspace
tasks:
- name: Welcome
command: |
markserv -p 9000 --browser false &
sleep 2
gp preview "$(gp url 9000)/welcome.md"
- name: Server
before: |
cd /workspace/mattermost/server
export MM_SERVICESETTINGS_SITEURL=$(gp url 8065)
init: |
make run-server
gp ports await 8065
make stop-server
make test-data
echo "Server built"
command: |
make run-server
- name: Webapp
before: |
cd /workspace/mattermost/webapp
export MM_SERVICESETTINGS_SITEURL=$(gp url 8065)
nvm install
nvm alias default $(cat .nvmrc)
echo "nvm use default" >> ~/.bashrc
init: |
mkdir -p channels/dist
cd ../server
ln -nfs ../webapp/channels/dist client
cd ../webapp
npm i
echo "Webapp built"
command: |
npm i
make run
openMode: split-right
- name: Cypress
init: |
cd /workspace/mattermost/e2e-tests/cypress
npm i
- name: Playwright
init: |
cd /workspace/mattermost/e2e-tests/playwright
npm i
npx playwright install
- name: Plugin
before: |
nvm install || nvm install v13.14
init: |
source /workspace/mattermost-gitpod-config/scripts/plugin/init-plugin-project.sh
echo "Plugin built"
command: |
gp ports await 8065
echo "Server is running at $(gp url 8065)"
source /workspace/mattermost-gitpod-config/scripts/plugin/run-plugin-project.sh
env:
MM_SERVICESETTINGS_ENABLEDEVELOPER: true
- name: Project
init: |
source /workspace/mattermost-gitpod-config/scripts/app/init-app-project.sh
echo "Project built"
command: |
source /workspace/mattermost-gitpod-config/scripts/app/run-app-project.sh