Skip to content

Commit

Permalink
Caching node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 6, 2016
1 parent 454bb10 commit 78e01ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ language: python
python:
- "2.7"
- "3.4"
env:
global:
- NODE_PATH=$HOME/.node_modules/
cache:
directories:
- $HOME/.wheelhouse/
- $NODE_PATH
install:
- pip wheel -w $HOME/.wheelhouse -f $HOME/.wheelhouse -r requirements.txt
- pip install --find-links=$HOME/.wheelhouse --no-index -rrequirements.txt
Expand All @@ -13,6 +17,6 @@ install:
- npm install
- npm run prod
- npm run lint
# command to run tests
- cd $TRAVIS_BUILD_DIR
script: bash run_tests.sh
after_success: coveralls
2 changes: 1 addition & 1 deletion panoramix/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __get__(self, obj, objtype):
def list_minus(l, minus):
"""Returns l without what is in minus
>>> list_without([1, 2, 3], [2])
>>> list_minus([1, 2, 3], [2])
[1, 3]
"""
return [o for o in l if o not in minus]
Expand Down

0 comments on commit 78e01ab

Please sign in to comment.