summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-01-18 11:44:53 +0100
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-01-18 17:07:18 +0100
commitc83cdc933541ed8c9ef882a83affa1264833dd80 (patch)
tree8dfb03a822d8a712e8fa68b100c8924e30a8b3dd
parente91e3c076d93a2102c344432effbfa135469a9d4 (diff)
downloadwekan-c83cdc933541ed8c9ef882a83affa1264833dd80.tar.gz
wekan-c83cdc933541ed8c9ef882a83affa1264833dd80.tar.bz2
wekan-c83cdc933541ed8c9ef882a83affa1264833dd80.zip
Add openapi in snaps
Same thing than in the Dockerfile, snaps need to embed the current openapi yaml file.
-rw-r--r--snapcraft.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml
index c8675fe1..cba5bf30 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -90,6 +90,7 @@ parts:
- ca-certificates
- apt-utils
- python
+ - python3
- g++
- capnproto
- curl
@@ -101,6 +102,16 @@ parts:
override-build: |
echo "Cleaning environment first"
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
+ # Create the OpenAPI specification
+ rm -rf .build
+ mkdir -p .build/python
+ cd .build/python
+ git clone --depth 1 -b master git://github.com/Kronuz/esprima-python
+ cd esprima-python
+ python3 setup.py install
+ cd ../../..
+ mkdir -p ./public/api
+ python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
# Node Fibers 100% CPU usage issue:
# https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-381453161
# https://github.com/meteor/meteor/issues/9796#issuecomment-381676326