Compare commits

...

1 Commits

Author SHA1 Message Date
Eugene Pankov
44b4f5ccf8 wip 2018-08-18 21:47:11 +02:00
3 changed files with 40 additions and 15 deletions

View File

@@ -1,27 +1,35 @@
matrix:
include:
- os: linux
env: BUILD_FOR=linux
- os: osx
env: BUILD_FOR=macos
language: node_js
node_js: 7
services:
- docker
cache:
directories:
- node_modules
- app/node_modules
before_install:
- yarn install
- scripts/install-deps.js
stages:
- build
- name: deploy
if: branch = master
script:
- scripts/build-native.js
- yarn run build
- scripts/prepackage-plugins.js
- scripts/build-$BUILD_FOR.js
jobs:
include:
- stage: build
os: linux
env: BUILD_FOR=linux
script: ./travis.sh
- stage: build
os: osx
env: BUILD_FOR=macos
script: ./travis.sh
- stage: deploy
os: linux
env: BUILD_FOR=linux STAGE=deploy
script: ./travis.sh
dist: trusty
sudo: false

View File

@@ -93,6 +93,9 @@
"github"
]
},
"snap": {
"confinement": "classic"
},
"deb": {
"depends": [
"screen",

14
travis.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -ev
yarn install
scripts/install-deps.js
scripts/build-native.js
yarn run build
scripts/prepackage-plugins.js
scripts/build-$BUILD_FOR.js
if [ "${STAGE}" = "deploy" ]; then
docker run -v $(pwd):$(pwd) -t snapcore:snapcraft sh -c "apt update -qq && cd $(pwd) && snapcraft && snapcraft push dist/*.snap --release edge"
fi