2017-06-24 16:23:52 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2017-06-24 17:01:56 +00:00
|
|
|
env: BUILD_FOR=linux
|
2017-06-24 16:23:52 +00:00
|
|
|
- os: osx
|
2017-06-24 17:01:56 +00:00
|
|
|
env: BUILD_FOR=macos
|
2017-06-24 16:23:52 +00:00
|
|
|
|
2017-06-24 11:26:52 +00:00
|
|
|
language: node_js
|
2018-12-30 16:26:01 +00:00
|
|
|
node_js: 10
|
2017-06-24 11:26:52 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2017-06-24 11:27:26 +00:00
|
|
|
- app/node_modules
|
2017-06-24 11:26:52 +00:00
|
|
|
|
2019-03-07 17:04:03 +00:00
|
|
|
stages:
|
|
|
|
- Build
|
|
|
|
- name: Docs
|
|
|
|
if: branch = master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: 'Build'
|
|
|
|
before_install:
|
|
|
|
- rm app/node_modules/.yarn-integrity || true
|
|
|
|
- yarn
|
|
|
|
script:
|
|
|
|
- scripts/build-native.js
|
|
|
|
- yarn run build
|
|
|
|
- scripts/prepackage-plugins.js
|
|
|
|
- scripts/build-$BUILD_FOR.js
|
2017-06-24 11:26:52 +00:00
|
|
|
|
2019-03-07 17:04:03 +00:00
|
|
|
- stage: 'Docs'
|
|
|
|
os: linux
|
|
|
|
script:
|
|
|
|
- openssl aes-256-cbc -K $encrypted_4e2fb4889ef8_key -iv $encrypted_4e2fb4889ef8_iv -in .travis.ssh.key.enc -out .travis.ssh.key -d
|
|
|
|
- ssh-add .travis.ssh.key
|
|
|
|
- yarn
|
|
|
|
- yarn run docs
|
|
|
|
- rsync -r docs/api/ root@ajenti.org:/srv/terminus-docs/
|
2017-06-24 11:26:52 +00:00
|
|
|
|
2017-06-24 16:52:19 +00:00
|
|
|
dist: trusty
|
2017-06-24 11:26:52 +00:00
|
|
|
sudo: false
|
|
|
|
|
2017-06-24 12:27:56 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- rpm
|
2017-12-14 13:55:31 +00:00
|
|
|
- yarn
|
|
|
|
sources:
|
|
|
|
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
|
|
|
|
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
|