30 lines
682 B
YAML
30 lines
682 B
YAML
language: node_js
|
|
|
|
services:
|
|
- docker
|
|
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
- $HOME/.cache/electron
|
|
- $HOME/.cache/electron-builder
|
|
- $HOME/.npm/_prebuilds
|
|
|
|
node_js:
|
|
- "10"
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
install:
|
|
- npm install
|
|
|
|
script:
|
|
- npm run build
|
|
- npm run test
|
|
- if [[ "$TRAVIS_TAG" != "" ]]; then npm run prepare-release; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then npm run package-with-docker -- linux; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then npm run package -- mac; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then npm run package-with-docker -- win; fi
|