-
Notifications
You must be signed in to change notification settings - Fork 10
/
.gitpod.yml
78 lines (69 loc) · 2.02 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
# http://gitpod.io/#github.com/gnolang/gnochess
additionalRepositories:
- url: https://github.com/gnolang/gno
checkoutLocation: gno
# gnoland and gnoweb need to reference local files.
# gnokey and gno don't, and they are versioned using their values
# in go.mod
tasks:
- name: Gnoland
before: cd ../gno/gno.land/
init: |
git fetch --all
git switch patch/gnochess
touch /workspace/.init.switch
go install ./cmd/gnoland ./cmd/gnoweb
touch /workspace/.init.install
command: gnoland start
- name: Gnoweb
init: while [ ! -f /workspace/.init.install ]; do sleep 1; done
before: cd ../gno/gno.land/;
command: gnoweb --bind=0.0.0.0:8888
openMode: split-right
- name: Deps
before: cd ../gno/misc/devdeps
init: |
while [ ! -f /workspace/.init.switch ]; do sleep 1; done
make install
echo "Deps installed."
openMode: split-right
- name: Gno CLI
init: |
cat >> ~/.bashrc << EOF
_xurl () { echo $GITPOD_WORKSPACE_URL | sed 's#://#://8888-#'; }
intro () {
echo "Get started with the tutorial"
echo " > https://github.com/gnolang/gnochess/blob/main/tutorial/01_getting_started/README.md"
echo "Open up gnoweb"
echo " > $(echo $GITPOD_WORKSPACE_URL | sed 's#://#://8888-#' )"
echo " > Pull it back up with command 'url'"
}
alias url=_xurl
EOF
go mod download
go install \
github.com/gnolang/gno/gno.land/cmd/gnokey \
github.com/gnolang/gno/gnovm/cmd/gno
source ~/.profile
command: intro
ports:
- name: gnoweb
description: "the Gno.land web server"
port: 8888
onOpen: notify
- name: "gnoland RPC"
description: "the RPC server, managed by tendermint2"
port: 36657
onOpen: notify
github:
prebuilds:
master: true
branches: true
pullRequests: true
pullRequestsFromForks: true
addCheck: true
addComment: true
addBadge: true
vscode:
extensions:
- harry-hov.gno