build fixes (#362)

* add production web build to travis tests

* remove old builds before starting new build
This commit is contained in:
Bruce Martin
2018-10-22 13:54:11 -07:00
committed by GitHub
parent 96675f806c
commit b74c9e15c6
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -14,5 +14,6 @@ install:
script:
- set -eo pipefail
- flake8 server/app/
- npm run build
- npm run --prefix client/ test
- pytest -s server/test
+1
View File
@@ -6,6 +6,7 @@ cd $CELLXGENE_DIR
npm install --prefix client/ client
npm run --prefix client build
rm -rf server/app/web/static
mkdir -p server/app/web/static/img
cp client/build/index.html server/app/web/templates/
cp -r client/build/static server/app/web/