KawAnime/.travis.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

language: node_js
node_js: "12"
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
install:
- npm install
jobs:
2019-06-14 11:28:07 +00:00
include:
-
os: osx
2019-06-14 11:41:05 +00:00
osx_image: xcode10.2
2019-06-14 11:28:07 +00:00
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- MATRIX_EVAL="brew install gcc && CC=gcc-5 && CXX=g++-5"
2019-06-14 12:19:19 +00:00
name: Mac
before_script:
- "export DISPLAY=:99.0"
script:
2019-07-03 21:37:35 +00:00
- node --version
- npm --version
- npm run lint
2019-07-03 20:38:34 +00:00
- npm run pack
- npm run test
2019-06-14 11:28:07 +00:00
-
os: linux
2019-06-14 11:41:05 +00:00
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
2019-06-14 11:45:58 +00:00
- g++-5
- gcc-5
env: CC=gcc-5 CXX=g++-5
2019-06-14 12:19:19 +00:00
name: Linux
2019-07-03 20:38:34 +00:00
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
2019-06-14 11:28:07 +00:00
script:
2019-07-03 21:37:35 +00:00
- node --version
- npm --version
2019-06-14 11:28:07 +00:00
- npm run lint
2019-07-03 20:38:34 +00:00
- npm run pack
- npm run test
- "[[ $TRAVIS_BRANCH == master ]] && npm run publish:linux || echo \"Skipped Deploy Step\""
2019-06-14 12:29:47 +00:00
notifications:
email: false