mirror of https://github.com/Kylart/KawAnime.git
Added conditional deploy steps
This commit is contained in:
parent
f39ea112e5
commit
201abf0bc6
27
.travis.yml
27
.travis.yml
|
@ -19,9 +19,15 @@ jobs:
|
||||||
- ELECTRON_CACHE=$HOME/.cache/electron
|
- ELECTRON_CACHE=$HOME/.cache/electron
|
||||||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
||||||
- MATRIX_EVAL="brew install gcc && CC=gcc-7 && CXX=g++-7"
|
- MATRIX_EVAL="brew install gcc && CC=gcc-7 && CXX=g++-7"
|
||||||
name: Lint
|
name: Mac
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
deploy:
|
||||||
|
script:
|
||||||
|
- npm run publish:mac
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
condition: $TRAVIS_BRANCH = master
|
||||||
|
|
||||||
-
|
-
|
||||||
os: linux
|
os: linux
|
||||||
|
@ -33,17 +39,12 @@ jobs:
|
||||||
- g++-5
|
- g++-5
|
||||||
- gcc-5
|
- gcc-5
|
||||||
env: CC=gcc-5 CXX=g++-5
|
env: CC=gcc-5 CXX=g++-5
|
||||||
name: Lint
|
name: Linux
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
deploy:
|
||||||
-
|
script:
|
||||||
name: Deploy
|
- npm run publish:linux
|
||||||
if: branch = master
|
on:
|
||||||
script:
|
branch: master
|
||||||
- |
|
condition: $TRAVIS_BRANCH = master
|
||||||
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
|
||||||
npm run publish:linux
|
|
||||||
else
|
|
||||||
npm run publish:mac
|
|
||||||
fi
|
|
Loading…
Reference in New Issue