0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-02 12:28:54 -05:00

🚧 💚 Fix release build

This commit is contained in:
mathieu.brunot 2019-02-15 18:52:02 +01:00
parent c9cf540d8e
commit 7324592f1f
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
3 changed files with 11 additions and 8 deletions

View file

@ -23,10 +23,12 @@ before_script:
- env | sort - env | sort
script: script:
- ./frontend/scripts/build-tests - cd ./frontend
- ./scripts/build-tests
- nvm install $NODE_VERSION - nvm install $NODE_VERSION
- node --version - node --version
- node ./frontend/out/tests.js - node ./out/tests.js
- cd ..
- ./manage.sh release-local - ./manage.sh release-local
- ./manage.sh release-docker - ./manage.sh release-docker
@ -39,3 +41,4 @@ notifications:
env: env:
- NODE_VERSION=7.7.1 - NODE_VERSION=7.7.1
- NODE_VERSION=10.15.1

View file

@ -5,8 +5,8 @@ ENV LEIN_ROOT=TRUE
# Copy backend source and build release # Copy backend source and build release
COPY . /home/uxbox/backend COPY . /home/uxbox/backend
RUN set -ex; \ RUN set -ex; \
rm -f Dockerfile docker-entrypoint.sh; \
cd backend; \ cd backend; \
rm -f Dockerfile docker-entrypoint.sh; \
bash -c "/home/uxbox/backend/scripts/dist.sh" bash -c "/home/uxbox/backend/scripts/dist.sh"

View file

@ -6,17 +6,17 @@ ENV LEIN_ROOT=TRUE
# Copy frontend source and build release # Copy frontend source and build release
COPY . /home/uxbox/frontend COPY . /home/uxbox/frontend
RUN set -ex; \ RUN set -ex; \
rm -f Dockerfile; \
cd frontend; \ cd frontend; \
rm -f Dockerfile; \
rm -rf ./dist ./node_modules; \
sed -i \ sed -i \
-e 's|"uxbox.config.url" ".*"|"uxbox.config.url" "${API_URL}/api"|g' \ -e 's|"uxbox.config.url" ".*"|"uxbox.config.url" "${API_URL}/api"|g' \
scripts/figwheel.clj; \ scripts/figwheel.clj; \
npm install; \ npm install; \
npm run dist; \ npm run dist; \
./scripts/dist-main; \ bash -c "/home/uxbox/frontend/scripts/dist-main"; \
./scripts/dist-view; \ bash -c "/home/uxbox/frontend/scripts/dist-view"; \
./scripts/dist-worker; \ bash -c "/home/uxbox/frontend/scripts/dist-worker"
rm -rf ./dist/**/*.gz ./dist/**/*.br