2020-02-18 11:22:12 +07:00
|
|
|
language: minimal
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- name: Test
|
2020-02-19 11:31:40 +07:00
|
|
|
if: tag IS blank
|
2020-03-28 01:01:48 +07:00
|
|
|
script: ./ci/image/run.sh "yarn && git submodule update --init && yarn vscode:patch && ./ci/ci.sh"
|
2020-02-19 07:06:35 +07:00
|
|
|
deploy: null
|
|
|
|
- name: Linux Release
|
|
|
|
if: tag IS present
|
2020-02-19 01:06:18 +07:00
|
|
|
script:
|
2020-03-26 05:08:42 +07:00
|
|
|
- travis_wait 60 ./ci/image/run.sh "yarn && yarn vscode && ci/release.sh && ./ci/build-test.sh"
|
2020-02-19 01:06:18 +07:00
|
|
|
- ./ci/release-image/push.sh
|
2020-02-18 11:22:12 +07:00
|
|
|
- name: Linux ARM64 Release
|
2020-02-19 07:06:35 +07:00
|
|
|
if: tag IS present
|
2020-02-19 01:06:18 +07:00
|
|
|
script:
|
2020-03-26 05:08:42 +07:00
|
|
|
- ./ci/image/run.sh "yarn && yarn vscode && ci/release.sh && ./ci/build-test.sh"
|
2020-02-19 01:06:18 +07:00
|
|
|
- ./ci/release-image/push.sh
|
2020-02-18 11:22:12 +07:00
|
|
|
arch: arm64
|
|
|
|
- name: MacOS Release
|
2020-02-19 07:06:35 +07:00
|
|
|
if: tag IS present
|
2020-02-18 11:22:12 +07:00
|
|
|
os: osx
|
|
|
|
language: node_js
|
|
|
|
node_js: 12
|
2020-03-26 05:08:42 +07:00
|
|
|
script: yarn && yarn vscode && travis_wait 60 ci/release.sh && ./ci/build-test.sh
|
2020-02-18 11:22:12 +07:00
|
|
|
|
2020-02-27 01:42:57 +07:00
|
|
|
before_deploy:
|
2020-03-04 05:01:22 +07:00
|
|
|
- echo "$JSON_KEY" | base64 --decode > ./ci/key.json
|
2020-02-27 01:42:57 +07:00
|
|
|
|
2020-02-18 11:22:12 +07:00
|
|
|
deploy:
|
|
|
|
- provider: releases
|
|
|
|
edge: true
|
|
|
|
draft: true
|
2020-03-27 06:27:25 +07:00
|
|
|
overwrite: true
|
2020-02-18 11:22:12 +07:00
|
|
|
tag_name: $TRAVIS_TAG
|
|
|
|
target_commitish: $TRAVIS_COMMIT
|
|
|
|
name: $TRAVIS_TAG
|
|
|
|
file:
|
|
|
|
- release/*.tar.gz
|
|
|
|
- release/*.zip
|
|
|
|
on:
|
|
|
|
tags: true
|
2020-02-27 01:42:57 +07:00
|
|
|
- provider: gcs
|
|
|
|
edge: true
|
|
|
|
bucket: "codesrv-ci.cdr.sh"
|
2020-02-28 00:21:40 +07:00
|
|
|
upload_dir: "releases"
|
2020-02-27 01:42:57 +07:00
|
|
|
key_file: ./ci/key.json
|
|
|
|
local_dir: release-upload
|
|
|
|
on:
|
|
|
|
tags: true
|
2020-03-27 03:50:32 +07:00
|
|
|
# TODO: The gcs provider fails to install on arm64.
|
|
|
|
condition: $TRAVIS_CPU_ARCH = amd64
|
2020-02-18 11:22:12 +07:00
|
|
|
|
|
|
|
cache:
|
|
|
|
timeout: 600
|
|
|
|
yarn: true
|
2020-03-04 05:11:09 +07:00
|
|
|
directories:
|
|
|
|
- lib/vscode/.build/extensions
|