From 58ea249cc0509ee5f25191ac0616e77b9b34645f Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Wed, 15 Feb 2017 08:25:49 -0800 Subject: [PATCH] Adding npm sync-backend command to build instruction --- .travis.yml | 1 - run_tests.sh | 1 - superset/assets/js_sync_backend.sh | 5 +++++ tox.ini | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 superset/assets/js_sync_backend.sh diff --git a/.travis.yml b/.travis.yml index 336659866c025..bd7bb7eb8ad0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,5 +34,4 @@ install: - pip install --upgrade pip - pip install tox tox-travis - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION - - npm install script: tox -e $TOX_ENV diff --git a/run_tests.sh b/run_tests.sh index db7bda6b7dcd2..55760f633bb67 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -7,7 +7,6 @@ rm -f .coverage export SUPERSET_CONFIG=tests.superset_test_config set -e superset/bin/superset db upgrade -superset/bin/superset db upgrade # running twice on purpose as a test superset/bin/superset version -v python setup.py nosetests coveralls diff --git a/superset/assets/js_sync_backend.sh b/superset/assets/js_sync_backend.sh new file mode 100755 index 0000000000000..a9e948ac11d3f --- /dev/null +++ b/superset/assets/js_sync_backend.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -e +cd "$(dirname "$0")" +npm install +npm run sync-backend diff --git a/tox.ini b/tox.ini index d0a0c25464026..454c8ffb7ba97 100644 --- a/tox.ini +++ b/tox.ini @@ -32,6 +32,7 @@ commands = pip wheel -w {homedir}/.wheelhouse -f {homedir}/.wheelhouse . pip install --find-links={homedir}/.wheelhouse --no-index . pip install -r dev-reqs.txt + {toxinidir}/superset/assets/js_sync_backend.sh {toxinidir}/run_tests.sh [testenv:javascript]