From b74c9e15c6802fa8980f270e5ae233d2043ccc25 Mon Sep 17 00:00:00 2001 From: Bruce Martin Date: Mon, 22 Oct 2018 13:54:11 -0700 Subject: [PATCH] build fixes (#362) * add production web build to travis tests * remove old builds before starting new build --- .travis.yml | 1 + bin/build-client | 1 + 2 files changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1c6c6480..3292931a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,5 +14,6 @@ install: script: - set -eo pipefail - flake8 server/app/ + - npm run build - npm run --prefix client/ test - pytest -s server/test diff --git a/bin/build-client b/bin/build-client index a4b2c484..33a900b9 100755 --- a/bin/build-client +++ b/bin/build-client @@ -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/