File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ matrix:
49
49
- TMPDIR="/tmp/sym link"
50
50
- python : 3.3
51
51
- python : 3.4
52
- # Those aren't yet ready since lxml Ibelieve fails to install
52
+ # Those aren't yet ready since lxml I believe fails to install
53
53
# - python: pypy
54
54
# - python: pypy3
55
55
# not there -- don't try!
@@ -69,6 +69,8 @@ before_install:
69
69
- travis_retry sudo apt-get update -qq
70
70
- sudo tools/ci/prep-travis-forssh-sudo.sh
71
71
- tools/ci/prep-travis-forssh.sh
72
+ # Install grunt-cli
73
+ - npm install grunt-cli
72
74
73
75
install :
74
76
# Install standalone build of git-annex for the recent enough version
@@ -90,13 +92,18 @@ install:
90
92
- pip install sphinx_rtd_theme
91
93
# TMPDIR
92
94
- if [ ! -z "$TMPDIR" ]; then echo "Symlinking $TMPDIR"; ln -s /tmp "$TMPDIR"; fi
95
+ # Install grunt to test run javascript frontend tests
96
+ - npm install grunt
97
+ - npm install grunt-contrib-qunit
93
98
94
99
script :
95
100
- if [ ! -z "$DATALAD_TESTS_NONETWORK" ]; then sudo route add -net 0.0.0.0 netmask 0.0.0.0 dev lo; fi
96
101
- $NOSE_WRAPPER `which nosetests` -s -v --with-doctest --doctest-tests --with-cov --cover-package datalad --logging-level=INFO
97
102
- if [ ! -z "$DATALAD_TESTS_NONETWORK" ]; then sudo route del -net 0.0.0.0 netmask 0.0.0.0 dev lo; fi
98
103
# Generate documentation and run doctests
99
104
- PYTHONPATH=$PWD make -C docs html doctest
105
+ # Run javascript tests
106
+ - grunt test --verbose --force
100
107
101
108
after_success :
102
109
- coveralls
Original file line number Diff line number Diff line change
1
+ module . exports = function ( grunt ) {
2
+ // Project configuration.
3
+ grunt . initConfig ( {
4
+ qunit : {
5
+ files : [ 'datalad/resources/website/tests/test.html' ]
6
+ }
7
+ } ) ;
8
+ // Load plugin
9
+ grunt . loadNpmTasks ( 'grunt-contrib-qunit' ) ;
10
+ // Task to run tests
11
+ grunt . registerTask ( 'test' , 'qunit' ) ;
12
+ } ;
You can’t perform that action at this time.
0 commit comments