-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTaskfile.yml
More file actions
121 lines (98 loc) · 3.91 KB
/
Taskfile.yml
File metadata and controls
121 lines (98 loc) · 3.91 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: "3"
vars:
GREETING: Hello, Bhojpur VPN Developer!
tasks:
default:
cmds:
- echo "{{.GREETING}}"
silent: true
build-tools:
desc: Build runtime engine software for Bhojpur VPN realization
cmds:
- GOFLAGS=-mod=mod go build -o bin/vpnsvr ./server.go
- chmod 755 bin/vpnsvr
- cp bin/vpnsvr $GOPATH/bin
build-web-samples:
desc: Build the web application using wasm
cmds:
- cd internal; guiutl package -name "Bhojpur VPN" -os wasm -icon Icon.png
- cd internal/wasm; gui web
build-web-wasm:
desc: Build the web application using wasm
cmds:
- cd pkg/webui/wasm; guiutl package -name "Bhojpur VPN" -os wasm -icon ../../../internal/Icon.png
- cd pkg/webui/wasm; gui web
build-web-gopherjs:
desc: Build the web application using gopherjs
cmds:
- cd pkg/webui/bhojpur; guiutl package -name "Bhojpur VPN" -os gopherjs -icon ../../../internal/Icon.png
- cd pkg/webui/bhojpur; gui web
build-darwin:
desc: Build the desktop application for current OS
cmds:
- guiutl package -name "Bhojpur VPN" -os darwin -sourceDir internal -icon internal/Icon.png
- cp -R "Bhojpur VPN.app" ~/Applications
build-linux:
desc: Build the desktop application for current OS
cmds:
- guiutl package -name "Bhojpur VPN" -os linux -sourceDir internal -icon internal/Icon.png
build-windows:
desc: Build the desktop application for current OS
cmds:
- guiutl package -name "Bhojpur VPN" -os windows -sourceDir internal -icon internal/Icon.png
package-android:
desc: Package the mobile application for Android
cmds:
- guiutl package -name "Bhojpur VPN" -os android -appID net.bhojpur.vpn -icon internal/Icon.png
package-ios:
desc: Package the mobile application for iOS
cmds:
- guiutl package -name "Bhojpur VPN" -os ios -appID net.bhojpur.vpn -icon internal/Icon.png
release-macos:
desc: Release the native application for macOS App Store
cmds:
- guiutl release -appID net.bhojpur.vpn -appVersion 1.0 -appBuild 1 -category business
release-android:
desc: Release the mobile application for Google Play
cmds:
- guiutl release -os android -appID net.bhojpur.vpn -appVersion 1.0 -appBuild 1
release-ios:
desc: Release the mobile application for iOS App Store
cmds:
- guiutl release -os ios -appID net.bhojpur.vpn -appVersion 1.0 -appBuild 1
run-web-server:
desc: Run the web server application from source code
cmds:
- GOFLAGS=-mod=mod go run server.go
run-web-client:
desc: Run the web client application from source code
cmds:
- GOFLAGS=-mod=mod go run client.go
run-mobile:
desc: Run the mobile client application on emulator
cmds:
- GOFLAGS=-mod=mod go run -tags mobile native/main.go
run-desktop:
desc: Run the desktop application on local host
cmds:
- GOFLAGS=-mod=mod go run native/main.go
generate:
desc: Generate Go source code
cmds:
- GOFLAGS=-mod=mod go generate ./...
test:
desc: Execute all the Unit Tests
cmds:
- gotestsum --junitfile test-results/unit-tests.xml -- -short -race -cover -coverprofile test-results/cover.out ./...
swagger.gen:
desc: Generate Go code
cmds:
- GOFLAGS=-mod=mod go generate bhojpur.net/vpn/internal bhojpur.net/vpn/pkg/swagger
swagger.validate:
desc: Validate all the Swagger API specifications
cmds:
- swagger validate pkg/swagger/swagger.yml
swagger.doc:
desc: Generate documentation for Swagger specified APIs
cmds:
- docker run -i yousan/swagger-yaml-to-html < pkg/swagger/swagger.yml > doc/index.html