ci: update travis configuration

This commit is contained in:
Fabio Di Stasio 2020-12-18 17:38:06 +01:00
parent 8cafade8b1
commit 65ad0e954d
1 changed files with 8 additions and 3 deletions

View File

@ -1,9 +1,6 @@
language: node_js language: node_js
node_js: 12 node_js: 12
before_install:
- npm install
cache: cache:
directories: directories:
- node_modules - node_modules
@ -20,6 +17,9 @@ env:
jobs: jobs:
include: include:
- stage: Test - stage: Test
before_install:
- sudo apt-get install libsecret-1-dev
- npm install
script: script:
- npm test - npm test
@ -27,6 +27,9 @@ jobs:
if: tag IS present if: tag IS present
os: linux os: linux
services: docker services: docker
before_install:
- sudo apt-get install libsecret-1-dev
- npm install
script: script:
- 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" - 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: before_cache:
@ -35,6 +38,8 @@ jobs:
- stage: Deploy Mac - stage: Deploy Mac
if: tag IS present if: tag IS present
os: osx os: osx
before_install:
- npm install
osx_image: xcode10.2 osx_image: xcode10.2
script: script:
- npm run build -- -p always - npm run build -- -p always