Skip to content

Commit 8f12b32

Browse files
committed
Test Node 6 on Travis
By default, make test requires babel-polyfill and all tests run fine even on older versions of Node. For fluent-syntax, howeever, we want to also run tests without the polyfill in order to make sure that fluent-syntax is actually runnable on Node 6.
1 parent 3c497e8 commit 8f12b32

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
sudo: false
22
language: node_js
3-
script: make deps && make dist
3+
script:
4+
- make deps && make dist
5+
- make -C fluent-syntax test-without-babel-polyfill
46
node_js:
7+
- "6"
58
- "8"
69
cache:
710
directories: node_modules

fluent-syntax/makefile

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ compat.js: $(SOURCES)
2323
--output.file $@
2424
@echo -e " $(OK) $@ built"
2525

26+
.PHONY: test-without-babel-polyfill
27+
test-without-babel-polyfill:
28+
@mocha --recursive --ui tdd --require babel-register test/
29+
2630
clean:
2731
@rm -f $(PACKAGE).js compat.js
2832
@echo -e " $(OK) clean"

0 commit comments

Comments
 (0)