提交 5d46c5f2 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix shellcheck under CI

上级 87a6f086
......@@ -14,6 +14,7 @@ addons:
apt:
packages:
- xvfb
- shellcheck
cache:
directories:
......@@ -26,6 +27,7 @@ install:
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew update; brew cleanup; brew cask cleanup; fi
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew uninstall --force brew-cask; brew update; fi
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew cask install --force google-chrome; fi
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew install shellcheck; fi
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then export DISPLAY=':99.0'; fi
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then sh -e /etc/init.d/xvfb start; fi
......
......@@ -11,13 +11,15 @@ install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm --progress false --loglevel warn install
- npm --progress=false --loglevel=warn install
# Post-install test scripts.
test_script:
- node --version
- npm --version
- npm test
- npm run eslint
- npm run tslint
- npm run test:chrome
# Don't actually build.
build: off
......
......@@ -2,6 +2,9 @@ machine:
services:
- docker
dependencies:
pre:
- sudo apt-get update; sudo apt-get install shellcheck
test:
override:
- docker info
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册