浏览代码

[TEST] Add .travis.yml

tags/1.2.0
Achilles Rasquinha 7 年前
committed by Prateeksha Singh
父节点
当前提交
c71ad1cc59
共有 2 个文件被更改,包括 26 次插入0 次删除
  1. +12
    -0
      .travis.yml
  2. +14
    -0
      Makefile

+ 12
- 0
.travis.yml 查看文件

@@ -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
- 0
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 \


正在加载...
取消
保存