2017-06-24 19:26:52 +08:00
|
|
|
language: node_js
|
2019-03-08 05:38:05 +08:00
|
|
|
node_js: 11
|
2019-07-08 19:44:39 +08:00
|
|
|
osx_image: xcode11
|
2017-06-24 19:26:52 +08:00
|
|
|
|
2019-03-08 01:04:03 +08:00
|
|
|
stages:
|
2019-06-28 23:07:58 +08:00
|
|
|
- Build
|
|
|
|
- name: Docs
|
|
|
|
if: branch = master
|
2019-06-28 16:14:32 +08:00
|
|
|
|
2019-03-08 01:04:03 +08:00
|
|
|
jobs:
|
|
|
|
include:
|
2019-06-28 23:07:58 +08:00
|
|
|
- stage: 'Build'
|
2019-07-04 20:08:47 +08:00
|
|
|
if: branch = xxx
|
2019-06-28 23:07:58 +08:00
|
|
|
os: linux
|
|
|
|
before_install:
|
|
|
|
- set -e
|
|
|
|
- rm app/node_modules/.yarn-integrity || true
|
|
|
|
- yarn
|
|
|
|
script:
|
|
|
|
- set -e
|
2019-07-03 17:23:00 +08:00
|
|
|
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # https://github.com/travis-ci/travis-ci/issues/8920
|
2019-06-28 23:07:58 +08:00
|
|
|
- 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
|
|
|
|
- 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
|
|
|
|
|
2019-03-08 01:04:03 +08:00
|
|
|
- stage: 'Docs'
|
|
|
|
os: linux
|
2019-07-04 20:08:47 +08:00
|
|
|
if: branch = master
|
2019-03-08 01:04:03 +08:00
|
|
|
script:
|
2019-06-07 13:59:13 +08:00
|
|
|
- set -e
|
2019-07-17 14:50:33 +08:00
|
|
|
- '[ -z "${encrypted_4e2fb4889ef8_iv}" ] && exit 0'
|
2019-03-08 01:04:03 +08: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-08 04:31:49 +08:00
|
|
|
- eval "$(ssh-agent -s)"
|
2019-03-08 06:17:44 +08:00
|
|
|
- chmod 600 .travis.ssh.key
|
2019-03-08 01:04:03 +08:00
|
|
|
- ssh-add .travis.ssh.key
|
|
|
|
- yarn
|
|
|
|
- yarn run docs
|
2019-03-08 02:27:38 +08:00
|
|
|
- rsync -e "ssh -o StrictHostKeyChecking=no" -arv docs/api/ root@ajenti.org:/srv/terminus-docs/
|
2017-06-24 19:26:52 +08:00
|
|
|
|
2019-03-08 05:38:05 +08:00
|
|
|
dist: xenial
|
2017-06-24 19:26:52 +08:00
|
|
|
sudo: false
|
|
|
|
|
2017-06-24 20:27:56 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- rpm
|
2017-12-14 21:55:31 +08:00
|
|
|
- yarn
|
2019-05-27 02:54:10 +08:00
|
|
|
- libsecret-1-dev
|
2017-12-14 21:55:31 +08:00
|
|
|
sources:
|
|
|
|
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
|
|
|
|
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
|
2019-06-08 02:00:32 +08:00
|
|
|
|
2019-06-28 23:07:58 +08:00
|
|
|
|
2019-06-08 02:00:32 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
2019-06-14 18:22:36 +08:00
|
|
|
- 'terminus-*/node_modules'
|
2019-06-08 02:04:03 +08:00
|
|
|
- $HOME/.cache/yarn
|
|
|
|
- $HOME/.cache/electron
|
|
|
|
- $HOME/.cache/electron-builder
|