Permalink
Browse files

add travis

  • Loading branch information...
1 parent d4fd735 commit a41ea20e3a39ff3f2d9f9bb7016f54807cac72c3 lepture committed Nov 14, 2012
Showing with 34 additions and 3 deletions.
  1. +21 −0 .travis.yml
  2. +12 −3 Makefile
  3. +1 −0 package.json
View
@@ -0,0 +1,21 @@
+language: node_js
+
+node_js:
+ - 0.8
+
+before_script:
+ - git clone https://github.com/aralejs/liquidluck-theme-arale2.git ../liquidluck-theme-arale2
+ - cp -r ../liquidluck-theme-arale2/static tests/
+ - cp -r ../liquidluck-theme-arale2/templates tests/
+ - cp -r ../liquidluck-theme-arale2/test-travis.js tests/
+ - nohup node tests/test-travis.js &
+
+install:
+ - git clone https://github.com/seajs/spm.git ../spm
+ - npm install ../spm
+ - npm install node-static swig phantomjs
+ - spm env --init
+ - sed -i 's/\[/[\"modules.aralejs.org\",/g' ~/.spm/config.json
+ - spm install
+
+script: ./node_modules/.bin/phantomjs tests/static/js/run_jasmine_test.coffee http://127.0.0.1:8000/tests/runner.html
View
@@ -1,8 +1,17 @@
+THEME = $(HOME)/.liquidluck-themes/arale2
+
+
build:
- liquidluck build -v -s $(HOME)/.liquidluck-themes/arale2/settings.yml
+ spm build -v
+
+doc:
+ liquidluck build -v -s $(THEME)/settings.yml
debug:
- liquidluck server -d -s $(HOME)/.liquidluck-themes/arale2/settings.yml
+ liquidluck server -d -s $(THEME)/settings.yml
server:
- liquidluck server -s $(HOME)/.liquidluck-themes/arale2/settings.yml
+ liquidluck server -s $(THEME)/settings.yml
+
+test:
+ phantomjs $(THEME)/static/js/run_jasmine_test.coffee http://127.0.0.1:8000/tests/runner.html
View
@@ -16,6 +16,7 @@
"class": "arale/class/1.0.0/class",
"events": "arale/events/1.0.0/events"
},
+ "tests": ["base"],
"output": {
"base.js": "."
}

0 comments on commit a41ea20

Please sign in to comment.