Skip to content

Commit 8a9b5e7

Browse files
committed
set up for travis builds
1 parent 1290b43 commit 8a9b5e7

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ branches:
55
node_js:
66
- 0.8
77
- 0.10
8+
- 0.11
9+
before_install:
10+
- sudo apt-get update
11+
- sudo apt-get install openjdk-7-jre
12+
- sudo wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -O /usr/bin/lein
13+
- sudo chmod +x /usr/bin/lein

bin/lein_prefer

+7
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@ chmod +x $LEIN_PREFER
4141

4242
fi
4343

44+
if [[ ! -f $LEIN_PREFER ]]; then
45+
46+
echo "Failed to find or set up Leiningen"
47+
exit 1
48+
49+
fi
50+
4451
$LEIN_PREFER $@

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"build": "./scripts/build.sh",
4343
"build-clean": "./scripts/build_clean.sh",
4444
"clean": "./scripts/clean.sh",
45-
"prepublish": "npm run-script build-clean"
45+
"prepublish": "npm run-script build-clean",
46+
"test": "jasmine-node spec"
4647
},
4748
"directories": {
4849
"test": "./spec"

scripts/build.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -e
4+
35
./bin/lein_prefer deps
46
./bin/lein_prefer cljsbuild once release
57

0 commit comments

Comments
 (0)