Skip to content

Commit

Permalink
Test Node 6 on Travis
Browse files Browse the repository at this point in the history
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. See projectfluent#164.
  • Loading branch information
stasm committed Mar 8, 2018
1 parent 3c497e8 commit d4fc66d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
sudo: false
language: node_js
script: make deps && make dist
script:
- make deps && make dist
- [[ $(node --version) = v6.* ]] && make -C fluent-syntax test-without-babel-polyfill
node_js:
- "6"
- "8"
cache:
directories: node_modules
Expand Down
4 changes: 4 additions & 0 deletions fluent-syntax/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ compat.js: $(SOURCES)
--output.file $@
@echo -e " $(OK) $@ built"

.PHONY: test-without-babel-polyfill
test-without-babel-polyfill:
@mocha --recursive --ui tdd --require babel-register test/

clean:
@rm -f $(PACKAGE).js compat.js
@echo -e " $(OK) clean"
Expand Down

0 comments on commit d4fc66d

Please sign in to comment.