File tree 2 files changed +4
-11
lines changed
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
- - 0.8
3
+ - 0.10
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
-
3
- function testFailure {
4
- if [ $? != 0 ]; then
5
- exit 1;
6
- fi
7
- }
2
+ set -e
8
3
9
4
function installBuildDependencies {
10
5
npm install
11
6
}
12
7
13
8
function installDependencies {
9
+ ./node_modules/.bin/bower --version
14
10
./node_modules/.bin/bower install
15
11
}
16
12
17
13
function build {
18
14
./node_modules/.bin/grunt $@
19
- testFailure
20
15
}
21
16
22
17
function runPhantomJSOnlyTests {
23
18
phantomjs test/run-phantomjs-tests.js
24
- testFailure
25
19
}
26
20
27
21
function runCSSTest {
28
22
# workaround for csscritic currently needing to be called twice
29
23
phantomjs dist/csscritic-phantom.js -f test/signedOff.json --log=./ test/BasicHtmlReporterLayout.html || phantomjs dist/csscritic-phantom.js -f test/signedOff.json --log=./ test/BasicHtmlReporterLayout.html
30
- testFailure
31
24
}
32
25
33
26
if [ ! -d node_modules ]; then
34
27
installBuildDependencies
35
28
fi
36
29
37
- if [ ! -d components ]; then
30
+ if [ ! -d bower_components ]; then
38
31
installDependencies
39
32
fi
40
33
You can’t perform that action at this time.
0 commit comments