Skip to content

Commit e1b900e

Browse files
author
Christoph Burgmer
committed
Change travis build to use node 0.10, print bower version and simplify go script
1 parent e6cf34a commit e1b900e

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
language: node_js
22
node_js:
3-
- 0.8
3+
- 0.10

go

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,33 @@
11
#!/bin/bash
2-
3-
function testFailure {
4-
if [ $? != 0 ]; then
5-
exit 1;
6-
fi
7-
}
2+
set -e
83

94
function installBuildDependencies {
105
npm install
116
}
127

138
function installDependencies {
9+
./node_modules/.bin/bower --version
1410
./node_modules/.bin/bower install
1511
}
1612

1713
function build {
1814
./node_modules/.bin/grunt $@
19-
testFailure
2015
}
2116

2217
function runPhantomJSOnlyTests {
2318
phantomjs test/run-phantomjs-tests.js
24-
testFailure
2519
}
2620

2721
function runCSSTest {
2822
# workaround for csscritic currently needing to be called twice
2923
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
3124
}
3225

3326
if [ ! -d node_modules ]; then
3427
installBuildDependencies
3528
fi
3629

37-
if [ ! -d components ]; then
30+
if [ ! -d bower_components ]; then
3831
installDependencies
3932
fi
4033

0 commit comments

Comments
 (0)