mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
chore: fix travis build
This commit is contained in:
parent
14d8c0ffad
commit
9733c57568
1 changed files with 31 additions and 22 deletions
53
.travis.yml
53
.travis.yml
|
|
@ -5,7 +5,7 @@ node_js: '8'
|
|||
matrix:
|
||||
include:
|
||||
- os: osx
|
||||
osx_image: xcode9.0
|
||||
osx_image: xcode10
|
||||
env:
|
||||
- ELECTRON_CACHE=$HOME/.cache/electron
|
||||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
||||
|
|
@ -16,14 +16,14 @@ matrix:
|
|||
addons:
|
||||
chrome: stable
|
||||
- os: linux
|
||||
dist: trusty
|
||||
dist: xenial
|
||||
language: generic
|
||||
services:
|
||||
- docker
|
||||
before_install:
|
||||
- export CHROME_BIN=chromium-browser
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
# before_install:
|
||||
# - export CHROME_BIN=chromium-browser
|
||||
# - export DISPLAY=:99.0
|
||||
# - sh -e /etc/init.d/xvfb start
|
||||
|
||||
addons:
|
||||
ssh_known_hosts:
|
||||
|
|
@ -59,19 +59,28 @@ script:
|
|||
else
|
||||
yarn install && yarn add 7zip-bin-mac && yarn run pub
|
||||
fi
|
||||
after_success:
|
||||
- 'echo "DIST-RESULT:"'
|
||||
- 'ls -l ./dist'
|
||||
- |
|
||||
if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
||||
brew update
|
||||
brew install vitorgalvao/tiny-scripts/cask-repair
|
||||
openssl aes-256-cbc -K $encrypted_c04542ca1075_key -iv $encrypted_c04542ca1075_iv -in build/hub.enc -out ~/.config/hub -d
|
||||
cask-repair -b -v $TRAVIS_TAG superproductivity
|
||||
fi
|
||||
# - |
|
||||
# if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
||||
# sshpass -p "$DEPLOY_PASS" rsync -avz ./app2/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH/app2
|
||||
# openssl aes-256-cbc -K $encrypted_c04542ca1075_key -iv $encrypted_c04542ca1075_iv -in .snapcraft/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d
|
||||
# docker run -v $(pwd):$(pwd) -t snapcore/snapcraft sh -c "apt update -qq && cd $(pwd) && snapcraft push ./dist/*.snap --release stable"
|
||||
# fi
|
||||
|
||||
deploy:
|
||||
- provider: snap
|
||||
snap: ./app-builds/*.snap
|
||||
channel: stable
|
||||
skip_cleanup: true
|
||||
on:
|
||||
branch: master
|
||||
condition: $TRAVIS_OS_NAME = linux
|
||||
tags: true
|
||||
- provider: script
|
||||
script: sshpass -p "$DEPLOY_PASS" rsync -avz ./dist $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
|
||||
skip_cleanup: true
|
||||
on:
|
||||
branch: master
|
||||
condition: $TRAVIS_OS_NAME = linux
|
||||
tags: true
|
||||
# NOTE: this would only work, if we could auto publish the github draft
|
||||
# - provider: script
|
||||
# script: brew update && brew install vitorgalvao/tiny-scripts/cask-repair && openssl aes-256-cbc -K $encrypted_c04542ca1075_key -iv $encrypted_c04542ca1075_iv -in build/hub.enc -out ~/.config/hub -d && cask-repair -b -v $TRAVIS_TAG superproductivity
|
||||
# skip_cleanup: true
|
||||
# on:
|
||||
# branch: master
|
||||
# condition: $TRAVIS_OS_NAME = osx
|
||||
# tags: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue