2020-02-18 07:22:12 +03:00
|
|
|
language: minimal
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- name: Test
|
2020-02-19 07:31:40 +03:00
|
|
|
if: tag IS blank
|
2020-02-19 03:06:35 +03:00
|
|
|
script: ./ci/image/run.sh "yarn && yarn vscode && ./ci/ci.sh"
|
|
|
|
deploy: null
|
|
|
|
- name: Linux Release
|
|
|
|
if: tag IS present
|
2020-02-18 21:06:18 +03:00
|
|
|
script:
|
|
|
|
- travis_wait 60 ./ci/image/run.sh "yarn && yarn vscode && ci/release.sh"
|
|
|
|
- ./ci/release-image/push.sh
|
2020-02-18 07:22:12 +03:00
|
|
|
- name: Linux ARM64 Release
|
2020-02-19 03:06:35 +03:00
|
|
|
if: tag IS present
|
2020-02-18 21:06:18 +03:00
|
|
|
script:
|
|
|
|
- travis_wait 60 ./ci/image/run.sh "yarn && yarn vscode && ci/release.sh"
|
|
|
|
- ./ci/release-image/push.sh
|
2020-02-18 07:22:12 +03:00
|
|
|
arch: arm64
|
|
|
|
- name: MacOS Release
|
2020-02-19 03:06:35 +03:00
|
|
|
if: tag IS present
|
2020-02-18 07:22:12 +03:00
|
|
|
os: osx
|
|
|
|
language: node_js
|
|
|
|
node_js: 12
|
|
|
|
script: yarn && yarn vscode && travis_wait 60 ci/release.sh
|
|
|
|
|
2020-02-26 21:42:57 +03:00
|
|
|
before_deploy:
|
|
|
|
- openssl aes-256-cbc -K $encrypted_0c1654c01c97_key -iv $encrypted_0c1654c01c97_iv -in ./ci/key.json.enc -out ./ci/key.json -d
|
|
|
|
|
2020-02-18 07:22:12 +03:00
|
|
|
deploy:
|
|
|
|
- provider: releases
|
|
|
|
edge: true
|
|
|
|
draft: true
|
|
|
|
tag_name: $TRAVIS_TAG
|
|
|
|
target_commitish: $TRAVIS_COMMIT
|
|
|
|
name: $TRAVIS_TAG
|
|
|
|
file:
|
|
|
|
- release/*.tar.gz
|
|
|
|
- release/*.zip
|
|
|
|
on:
|
|
|
|
tags: true
|
2020-02-26 21:42:57 +03:00
|
|
|
- provider: gcs
|
|
|
|
edge: true
|
|
|
|
bucket: "codesrv-ci.cdr.sh"
|
|
|
|
key_file: ./ci/key.json
|
|
|
|
local_dir: release-upload
|
|
|
|
on:
|
|
|
|
tags: true
|
2020-02-18 07:22:12 +03:00
|
|
|
|
|
|
|
cache:
|
|
|
|
timeout: 600
|
|
|
|
yarn: true
|