superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Sort out dependencies in travis/tox (#4186)
Date Thu, 11 Jan 2018 05:46:13 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 4b0f252  Sort out dependencies in travis/tox (#4186)
4b0f252 is described below

commit 4b0f2521704ef5905543c03f5d5f54cb4c0d8b68
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Wed Jan 10 21:46:10 2018 -0800

    Sort out dependencies in travis/tox (#4186)
    
    * Make travis a bit more lean
    
    * Bump npm to 5.6.0
---
 .travis.yml | 5 -----
 tox.ini     | 8 +++++++-
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 89ca5b6..ba589d4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,7 +10,6 @@ cache:
 env:
   global:
     - TRAVIS_CACHE=$HOME/.travis_cache/
-    - TRAVIS_NODE_VERSION="8.8.1"
   matrix:
     - TOX_ENV=flake8
     - TOX_ENV=javascript
@@ -19,8 +18,6 @@ env:
     - TOX_ENV=py34-sqlite
     - TOX_ENV=py27-mysql
     - TOX_ENV=py27-sqlite
-before_install:
-  - npm install -g npm@'>=5.4.1'
 before_script:
   - mysql -u root -e "DROP DATABASE IF EXISTS superset; CREATE DATABASE superset DEFAULT
CHARACTER SET utf8 COLLATE utf8_unicode_ci"
   - mysql -u root -e "CREATE USER 'mysqluser'@'localhost' IDENTIFIED BY 'mysqluserpassword';"
@@ -31,6 +28,4 @@ before_script:
 install:
   - pip install --upgrade pip
   - pip install tox tox-travis
-  - pip install --upgrade flake8
-  - 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
 script: tox -e $TOX_ENV
diff --git a/tox.ini b/tox.ini
index b9b8c11..a4d5af4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -29,6 +29,9 @@ find_links =
 deps =
     wheel
     coveralls
+whitelist_externals =
+    pip
+    npm
 passenv =
     HOME
     TRAVIS
@@ -48,6 +51,7 @@ commands =
 
 [testenv:flake8]
 commands =
+    pip install --upgrade flake8
     flake8
 deps =
     flake8
@@ -56,7 +60,9 @@ deps =
     flake8-quotes
 
 [testenv:javascript]
-commands = {toxinidir}/superset/assets/js_build.sh
+commands =
+    npm install -g npm@'>=5.6.0'
+    {toxinidir}/superset/assets/js_build.sh
 
 [testenv:pylint]
 commands =

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message