代码拉取完成,页面将自动刷新
branches:
only:
- master
- /^v?[0-9]/
language: cpp
compiler: gcc
filter_secrets: false
env:
global:
- TZ=Europe/Oslo
- WIN_TZ="W. Europe Standard Time"
- NODE_ARCH="64"
- NODE_VERSION="8.15.0"
- npm_config_runtime="electron"
- npm_config_target="2.0.6"
- npm_config_disturl="https://atom.io/download/electron"
matrix:
include:
- os: linux
- os: osx
- os: windows
- os: windows
env: NODE_ARCH="32"
before_install:
- |
if [ $TRAVIS_OS_NAME == "windows" ]; then
choco install -y nvm
export NVM_HOME="C:\ProgramData\nvm"
export NVM_SYMLINK="C:\Program Files\nodejs"
export PATH=$PATH:$NVM_HOME:$NVM_SYMLINK
nvm install $NODE_VERSION $NODE_ARCH
nvm use $NODE_VERSION $NODE_ARCH
tzutil //s "$WIN_TZ"
else
nvm install $NODE_VERSION
nvm use $NODE_VERSION
fi
script:
- npm install
- npm run build
- npm test
- |
if [ $TRAVIS_OS_NAME == "osx" ]; then
npm run test-e2e
fi
after_success:
- echo "now's the time to run `npm run electron-builder`"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。