mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 11:58:11 +08:00
build fixes (#362)
* add production web build to travis tests * remove old builds before starting new build
This commit is contained in:
@@ -14,5 +14,6 @@ install:
|
|||||||
script:
|
script:
|
||||||
- set -eo pipefail
|
- set -eo pipefail
|
||||||
- flake8 server/app/
|
- flake8 server/app/
|
||||||
|
- npm run build
|
||||||
- npm run --prefix client/ test
|
- npm run --prefix client/ test
|
||||||
- pytest -s server/test
|
- pytest -s server/test
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ cd $CELLXGENE_DIR
|
|||||||
|
|
||||||
npm install --prefix client/ client
|
npm install --prefix client/ client
|
||||||
npm run --prefix client build
|
npm run --prefix client build
|
||||||
|
rm -rf server/app/web/static
|
||||||
mkdir -p server/app/web/static/img
|
mkdir -p server/app/web/static/img
|
||||||
cp client/build/index.html server/app/web/templates/
|
cp client/build/index.html server/app/web/templates/
|
||||||
cp -r client/build/static server/app/web/
|
cp -r client/build/static server/app/web/
|
||||||
|
|||||||
Reference in New Issue
Block a user