[TEST] Add .travis.yml
This commit is contained in:
parent
f9dcb493cf
commit
c71ad1cc59
12
.travis.yml
Normal file
12
.travis.yml
Normal file
@ -0,0 +1,12 @@
|
||||
language: node_js
|
||||
|
||||
node_js:
|
||||
- "6"
|
||||
- "8"
|
||||
|
||||
before_install:
|
||||
- git clone https://github.com/frappe/charts && cd charts
|
||||
- make install
|
||||
|
||||
script:
|
||||
- make test
|
||||
14
Makefile
14
Makefile
@ -12,6 +12,20 @@ build:
|
||||
$(NODEBIN)/rollup \
|
||||
--config $(BASEDIR)/rollup.config.js
|
||||
|
||||
install.dep:
|
||||
ifeq ($(shell command -v yarn),)
|
||||
@echo "Installing yarn..."
|
||||
|
||||
$(eval npm := $(shell command -v npm))
|
||||
$(npm) install -g yarn
|
||||
endif
|
||||
|
||||
$(eval yarn := $(shell command -v yarn))
|
||||
|
||||
install: install.dep
|
||||
$(yarn) \
|
||||
--cwd $(BASEDIR)
|
||||
|
||||
test:
|
||||
NODE_ENV=test \
|
||||
$(NODEBIN)/mocha \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user