Skip to content

Commit

Permalink
Configure TravisCI for Jasmine
Browse files Browse the repository at this point in the history
- Install the latest stable node prior to building
- Retry node package installation:
- Solution via travis-ci/travis-ci#3130
- Taken from https://docs.travis-ci.com/user/common-build-problems/
  • Loading branch information
Doc Ritezel and Patricia Arbona committed Aug 3, 2016
1 parent c1fceb5 commit 95b1cb5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ cache:
directories:
- lektor/admin/node_modules

before_install:
- curl -s -o $HOME/.nvm/nvm.sh https://raw.githubusercontent.com/creationix/nvm/v0.31.4/nvm.sh
- source $HOME/.nvm/nvm.sh
- nvm install stable
- node --version

install:
- pip install --editable .
- travis_retry make build-js

script: make test

Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ pex:
test:
@echo "---> running tests"
@cd tests; py.test . --tb=short -v
@echo "---> running javascript tests"
@cd lektor/admin; npm test

osx-dmg:
$(MAKE) -C gui osx-dmg

0 comments on commit 95b1cb5

Please sign in to comment.