maintenance (dev): development environment and workflow

This commit is contained in:
=
2019-04-10 17:56:39 +10:00
parent 1294780b18
commit b0c863eaf5
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ steps:
- apk --no-cache add git gcc libc-dev > /dev/null 2>&1
- cp ../test/assets/* /tmp/
- go get -t ../test/unit_go/...
- go test -v ../test/unit_go/...
- go test --tags "fts5" -v ../test/unit_go/...
- name: test_js
image: node:8-alpine
+3
View File
@@ -7,6 +7,9 @@ build_frontend:
build_backend:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ CGO_CFLAGS_ALLOW='-fopenmp' go build --tags "fts5" -ldflags "-X github.com/mickael-kerjean/filestash/server/common.BUILD_NUMBER=`date -u +%Y%m%d`" -o dist/filestash server/main.go
build_backend_reload:
gin --bin dist/filestash-reload --path ./server/ --port 8333 --appPort 8334 run server/main.go
build_plugins:
go build -buildmode=plugin -o ./dist/data/plugin/image.so server/plugin/plg_image_light/index.go
go build -buildmode=plugin -o ./dist/data/plugin/backend_dav.so server/plugin/plg_backend_dav/index.go