FE-star / 2018.1

第二期课程仓库,请勿fork,建议watch或者star
43 stars 7 forks source link

travis.yml #6

Closed liudahu closed 6 years ago

liudahu commented 6 years ago
before_install:
- npm install -g karma
  - npm install
 dist: trusty
 addons:
   chrome: stable
sudo: required
language: node_js
#指定nodejs版本,可以指定多个
node_js:
  - 8.9.4

#运行的脚本命令
script:
  - npm run test

before_script:
#  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3 # give xvfb some time to start
#指定分支,只有指定的分支提交时才会运行脚本
branches:
  only:
    - master

这是我配置文件,但是不知道错再哪里

liudahu commented 6 years ago

ci没有跑通~只能提问题求助了

miniflycn commented 6 years ago

答疑课已讲