tabby/.travis.yml

37 lines
890 B
YAML
Raw Permalink Normal View History

2017-06-24 13:26:52 +02:00
language: node_js
2019-03-07 22:38:05 +01:00
node_js: 11
2017-06-24 13:26:52 +02:00
2019-03-07 18:04:03 +01:00
stages:
2019-06-28 17:07:58 +02:00
- Build
- name: Docs
if: branch = master
2019-06-28 10:14:32 +02:00
2019-03-07 18:04:03 +01:00
jobs:
include:
- stage: 'Docs'
os: linux
2019-07-04 14:08:47 +02:00
if: branch = master
2019-03-07 18:04:03 +01:00
script:
2019-07-22 14:25:27 +02:00
- '[ -z "${encrypted_4e2fb4889ef8_iv}" ] && exit 0 || true'
2019-07-22 14:04:28 +02:00
- set -e
2019-03-07 18:04:03 +01: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 21:31:49 +01:00
- eval "$(ssh-agent -s)"
2019-03-07 23:17:44 +01:00
- chmod 600 .travis.ssh.key
2019-03-07 18:04:03 +01:00
- ssh-add .travis.ssh.key
- yarn
- yarn run docs
2019-03-07 19:27:38 +01:00
- rsync -e "ssh -o StrictHostKeyChecking=no" -arv docs/api/ root@ajenti.org:/srv/terminus-docs/
2017-06-24 13:26:52 +02:00
2019-03-07 22:38:05 +01:00
dist: xenial
2017-06-24 13:26:52 +02:00
sudo: false
2017-06-24 14:27:56 +02:00
addons:
apt:
packages:
- rpm
2017-12-14 14:55:31 +01:00
- yarn
2019-05-26 20:54:10 +02:00
- libsecret-1-dev
2017-12-14 14:55:31 +01:00
sources:
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'