mirror of https://github.com/Fabio286/antares.git
ci: improvements on travis release config
This commit is contained in:
parent
a9d3a57281
commit
968ec1edf7
|
@ -6,4 +6,4 @@ thumbs.db
|
||||||
.vscode
|
.vscode
|
||||||
TODO.md
|
TODO.md
|
||||||
*.txt
|
*.txt
|
||||||
dev-app-update.yml
|
package-lock.json
|
24
.travis.yml
24
.travis.yml
|
@ -1,5 +1,3 @@
|
||||||
sudo: false
|
|
||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: 12
|
node_js: 12
|
||||||
|
|
||||||
|
@ -24,17 +22,17 @@ jobs:
|
||||||
- stage: Test
|
- stage: Test
|
||||||
script:
|
script:
|
||||||
- npm test
|
- npm test
|
||||||
- stage: Deploy Windows & Mac
|
- stage: Deploy Linux & Windows
|
||||||
if: tag IS present
|
|
||||||
os: osx
|
|
||||||
osx_image: xcode10.1
|
|
||||||
script:
|
|
||||||
- npm run build -- --mac --win -p always
|
|
||||||
before_cache:
|
|
||||||
- rm -rf $HOME/.cache/electron-builder/wine
|
|
||||||
- stage: Deploy linux
|
|
||||||
if: tag IS present
|
if: tag IS present
|
||||||
os: linux
|
os: linux
|
||||||
dist: trusty
|
services: docker
|
||||||
script:
|
script:
|
||||||
- npm run build -- --linux -p always
|
- docker run --rm --env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') -v ${PWD}:/project -v ~/.cache/electron:/root/.cache/electron -v ~/.cache/electron-builder:/root/.cache/electron-builder electronuserland/builder:wine /bin/bash -c "npm run build -- --linux --win -p always"
|
||||||
|
before_cache:
|
||||||
|
- rm -rf $HOME/.cache/electron-builder/wine
|
||||||
|
- stage: Deploy Mac
|
||||||
|
if: tag IS present
|
||||||
|
os: osx
|
||||||
|
osx_image: xcode10.2
|
||||||
|
script:
|
||||||
|
- npm run build -- -p always
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue