1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-15 06:07:23 +03:00
tabby/.travis.yml

73 lines
1.7 KiB
YAML
Raw Normal View History

2017-06-24 14:26:52 +03:00
language: node_js
2019-03-08 00:38:05 +03:00
node_js: 11
2017-06-24 14:26:52 +03:00
2019-03-07 20:04:03 +03:00
stages:
- Build
- name: Docs
if: branch = master
jobs:
include:
- stage: 'Build'
2019-03-07 20:15:52 +03:00
os: linux
before_install:
2019-06-07 08:59:13 +03:00
- set -e
2019-03-07 20:15:52 +03:00
- yarn
2019-03-07 21:27:38 +03:00
- rm app/node_modules/.yarn-integrity || true
- scripts/install-deps.js
2019-03-07 20:15:52 +03:00
script:
2019-06-07 08:59:13 +03:00
- set -e
2019-03-07 20:15:52 +03:00
- scripts/build-native.js
2019-06-06 14:45:15 +03:00
- yarn run build:typings
2019-03-07 20:15:52 +03:00
- yarn run build
- scripts/prepackage-plugins.js
2019-06-07 22:27:18 +03:00
- DEBUG=electron-builder scripts/build-linux.js
2019-03-07 20:15:52 +03:00
- stage: 'Build'
os: osx
2019-03-07 20:04:03 +03:00
before_install:
2019-06-07 08:59:13 +03:00
- set -e
2019-03-07 20:04:03 +03:00
- rm app/node_modules/.yarn-integrity || true
- yarn
script:
2019-06-07 08:59:13 +03:00
- set -e
2019-03-07 20:04:03 +03:00
- scripts/build-native.js
2019-06-06 20:39:52 +03:00
- yarn run build:typings
2019-03-07 20:04:03 +03:00
- yarn run build
- scripts/prepackage-plugins.js
2019-06-07 22:27:18 +03:00
- DEBUG=electron-builder scripts/build-macos.js
2017-06-24 14:26:52 +03:00
2019-03-07 20:04:03 +03:00
- stage: 'Docs'
os: linux
script:
2019-06-07 08:59:13 +03:00
- set -e
2019-03-07 20:04:03 +03:00
- openssl aes-256-cbc -K $encrypted_4e2fb4889ef8_key -iv $encrypted_4e2fb4889ef8_iv -in .travis.ssh.key.enc -out .travis.ssh.key -d
2019-03-07 23:31:49 +03:00
- eval "$(ssh-agent -s)"
2019-03-08 01:17:44 +03:00
- chmod 600 .travis.ssh.key
2019-03-07 20:04:03 +03:00
- ssh-add .travis.ssh.key
- yarn
- yarn run docs
2019-03-07 21:27:38 +03:00
- rsync -e "ssh -o StrictHostKeyChecking=no" -arv docs/api/ root@ajenti.org:/srv/terminus-docs/
2017-06-24 14:26:52 +03:00
2019-03-08 00:38:05 +03:00
dist: xenial
2017-06-24 14:26:52 +03:00
sudo: false
2017-06-24 15:27:56 +03:00
addons:
apt:
packages:
- rpm
2017-12-14 16:55:31 +03:00
- yarn
2019-05-26 21:54:10 +03:00
- libsecret-1-dev
2017-12-14 16:55:31 +03:00
sources:
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
2019-06-07 21:00:32 +03:00
cache:
directories:
2019-06-07 21:04:03 +03:00
- node_modules
2019-06-07 21:05:11 +03:00
- '*/node_modules'
2019-06-07 21:04:03 +03:00
- $HOME/.cache/yarn
- $HOME/.cache/electron
- $HOME/.cache/electron-builder