qa-svelte: initial commit
This commit is contained in:
parent
abdf146fea
commit
0fe037d7f5
43 changed files with 2089 additions and 1297 deletions
25
.drone.yml
25
.drone.yml
|
|
@ -29,6 +29,15 @@ steps:
|
|||
- go get -v -d srs.epita.fr/fic-server/qa
|
||||
- mkdir deploy
|
||||
|
||||
- name: build qa ui
|
||||
image: node:19-alpine
|
||||
commands:
|
||||
- cd qa/ui
|
||||
- npm install --network-timeout=100000
|
||||
- sed -i 's!@popperjs/core/dist/esm/popper!@popperjs/core!' node_modules/sveltestrap/src/*.js node_modules/sveltestrap/src/*.svelte
|
||||
- npm run build
|
||||
- tar chjf ../../deploy/htdocs-qa.tar.bz2 build
|
||||
|
||||
- name: vet
|
||||
image: golang:alpine
|
||||
commands:
|
||||
|
|
@ -81,9 +90,8 @@ steps:
|
|||
CGO_ENABLED: 0
|
||||
|
||||
- name: build frontend ui
|
||||
image: node:19-alpine3.15
|
||||
image: node:19-alpine
|
||||
commands:
|
||||
- apk --no-cache add python2 build-base
|
||||
- cd frontend/ui
|
||||
- npm install --network-timeout=100000
|
||||
- sed -i 's!@popperjs/core/dist/esm/popper!@popperjs/core!' node_modules/sveltestrap/src/*.js node_modules/sveltestrap/src/*.svelte
|
||||
|
|
@ -124,7 +132,6 @@ steps:
|
|||
image: golang:alpine
|
||||
commands:
|
||||
- go build -v -buildvcs=false -o deploy/qa-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/qa
|
||||
- tar chjf deploy/htdocs-qa.tar.bz2 htdocs-qa
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
|
||||
|
|
@ -372,9 +379,8 @@ steps:
|
|||
CGO_ENABLED: 0
|
||||
|
||||
- name: build frontend ui
|
||||
image: node:19-alpine3.15
|
||||
image: node:19-alpine
|
||||
commands:
|
||||
- apk --no-cache add python2 build-base
|
||||
- cd frontend/ui
|
||||
- npm install --network-timeout=100000
|
||||
- sed -i 's!@popperjs/core/dist/esm/popper!@popperjs/core!' node_modules/sveltestrap/src/*.js node_modules/sveltestrap/src/*.svelte
|
||||
|
|
@ -405,6 +411,15 @@ steps:
|
|||
GOOS: darwin
|
||||
GOARCH: arm64
|
||||
|
||||
- name: build qa ui
|
||||
image: node:19-alpine
|
||||
commands:
|
||||
- cd qa/ui
|
||||
- npm install --network-timeout=100000
|
||||
- sed -i 's!@popperjs/core/dist/esm/popper!@popperjs/core!' node_modules/sveltestrap/src/*.js node_modules/sveltestrap/src/*.svelte
|
||||
- npm run build
|
||||
- tar chjf ../../deploy/htdocs-qa.tar.bz2 build
|
||||
|
||||
- name: build qa
|
||||
image: golang:alpine
|
||||
commands:
|
||||
|
|
|
|||
Reference in a new issue