mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-25 22:48:33 +00:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
44b4f5ccf8 |
38
.travis.yml
38
.travis.yml
@@ -1,27 +1,35 @@
|
|||||||
matrix:
|
|
||||||
include:
|
|
||||||
- os: linux
|
|
||||||
env: BUILD_FOR=linux
|
|
||||||
- os: osx
|
|
||||||
env: BUILD_FOR=macos
|
|
||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: 7
|
node_js: 7
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
- app/node_modules
|
- app/node_modules
|
||||||
|
|
||||||
before_install:
|
stages:
|
||||||
- yarn install
|
- build
|
||||||
- scripts/install-deps.js
|
- name: deploy
|
||||||
|
if: branch = master
|
||||||
|
|
||||||
script:
|
jobs:
|
||||||
- scripts/build-native.js
|
include:
|
||||||
- yarn run build
|
- stage: build
|
||||||
- scripts/prepackage-plugins.js
|
os: linux
|
||||||
- scripts/build-$BUILD_FOR.js
|
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
|
dist: trusty
|
||||||
sudo: false
|
sudo: false
|
||||||
|
@@ -93,6 +93,9 @@
|
|||||||
"github"
|
"github"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"snap": {
|
||||||
|
"confinement": "classic"
|
||||||
|
},
|
||||||
"deb": {
|
"deb": {
|
||||||
"depends": [
|
"depends": [
|
||||||
"screen",
|
"screen",
|
||||||
|
14
travis.sh
Executable file
14
travis.sh
Executable 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
|
Reference in New Issue
Block a user