mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-21 09:31:44 +03:00
75 lines
1.7 KiB
YAML
75 lines
1.7 KiB
YAML
language: node_js
|
|
node_js: 11
|
|
|
|
stages:
|
|
- Build
|
|
- name: Docs
|
|
if: branch = master
|
|
|
|
jobs:
|
|
include:
|
|
- stage: 'Build'
|
|
os: linux
|
|
before_install:
|
|
- set -e
|
|
- sudo npm i -g yarn@latest
|
|
- rm app/node_modules/.yarn-integrity || true
|
|
- yarn
|
|
script:
|
|
- set -e
|
|
- scripts/build-native.js
|
|
- yarn run build:typings
|
|
- yarn run build
|
|
- scripts/prepackage-plugins.js
|
|
- travis_wait scripts/build-linux.js
|
|
|
|
- stage: 'Build'
|
|
os: osx
|
|
before_install:
|
|
- set -e
|
|
- sudo npm i -g yarn@latest
|
|
- rm app/node_modules/.yarn-integrity || true
|
|
- yarn
|
|
script:
|
|
- set -e
|
|
- scripts/build-native.js
|
|
- yarn run build:typings
|
|
- yarn run build
|
|
- scripts/prepackage-plugins.js
|
|
- travis_wait scripts/build-macos.js
|
|
|
|
- stage: 'Docs'
|
|
os: linux
|
|
if: branch = master
|
|
script:
|
|
- set -e
|
|
- openssl aes-256-cbc -K $encrypted_4e2fb4889ef8_key -iv $encrypted_4e2fb4889ef8_iv -in .travis.ssh.key.enc -out .travis.ssh.key -d
|
|
- eval "$(ssh-agent -s)"
|
|
- chmod 600 .travis.ssh.key
|
|
- ssh-add .travis.ssh.key
|
|
- yarn
|
|
- yarn run docs
|
|
- rsync -e "ssh -o StrictHostKeyChecking=no" -arv docs/api/ root@ajenti.org:/srv/terminus-docs/
|
|
|
|
dist: xenial
|
|
sudo: false
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- rpm
|
|
- yarn
|
|
- libsecret-1-dev
|
|
sources:
|
|
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
|
|
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
|
|
|
|
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
- 'terminus-*/node_modules'
|
|
- $HOME/.cache/yarn
|
|
- $HOME/.cache/electron
|
|
- $HOME/.cache/electron-builder
|