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

fix last line of \\

上级 699b3a79
......@@ -7,6 +7,11 @@ os:
- linux
- osx
addons:
apt:
packages:
- xvfb
cache:
directories:
- node_modules
......@@ -14,19 +19,20 @@ cache:
services:
- docker
install:
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew tap caskroom/cask; fi
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew install brew-cask; fi
- 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 google-chrome; fi
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then export DISPLAY=':99.0'; fi
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then (Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &); fi
script:
- echo $TRAVIS_OS_NAME
- npm test
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then docker build -t zixia/wechaty .; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then docker run zixia/wechaty test; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then docker build -t zixia/wechaty:test .; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then docker run zixia/wechaty:test test; fi
notifications:
webhooks:
......
FROM node:6.3.1-onbuild
RUN apt-get update && apt-get install -y \
xvfb \
xvfb
COPY entrypoint.sh /entrypoint.sh
RUN bash -n /entrypoint.sh && chmod a+x /entrypoint.sh
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册