2020-04-30 19:52:54 +08:00
|
|
|
language: node_js
|
|
|
|
node_js: node
|
2020-02-18 12:22:12 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- name: Test
|
2020-02-19 12:31:40 +08:00
|
|
|
if: tag IS blank
|
2020-04-30 19:52:54 +08:00
|
|
|
script: ./ci/container/exec.sh ./ci/steps/test.sh
|
2020-02-19 08:06:35 +08:00
|
|
|
deploy: null
|
2020-04-30 19:52:54 +08:00
|
|
|
install: null
|
2020-02-19 08:06:35 +08:00
|
|
|
- name: Linux Release
|
|
|
|
if: tag IS present
|
2020-04-30 19:52:54 +08:00
|
|
|
script: ./ci/steps/linux-release.sh
|
|
|
|
install: null
|
2020-05-07 08:26:48 +08:00
|
|
|
# Unfortunately ARM on travis is very unreliable.
|
|
|
|
# We see random build failures, logging output being truncated, build being killed
|
|
|
|
# due to no output even though we use travis_wait etc.
|
|
|
|
# So we've disabled it for now.
|
|
|
|
# - name: Linux Release
|
|
|
|
# if: tag IS present
|
|
|
|
# arch: arm64
|
|
|
|
# script: |
|
|
|
|
# sudo apt-get update && sudo apt-get install -y jq || exit 1
|
|
|
|
# travis_wait 60 ./ci/steps/linux-release.sh
|
|
|
|
# install: null
|
2020-02-18 12:22:12 +08:00
|
|
|
- name: MacOS Release
|
2020-02-19 08:06:35 +08:00
|
|
|
if: tag IS present
|
2020-02-18 12:22:12 +08:00
|
|
|
os: osx
|
2020-04-30 19:52:54 +08:00
|
|
|
# node 13/14 crashes in the build process for some reason.
|
2020-02-18 12:22:12 +08:00
|
|
|
node_js: 12
|
2020-04-30 19:52:54 +08:00
|
|
|
script: |
|
|
|
|
HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install jq || exit 1
|
|
|
|
travis_wait 60 ./ci/steps/static-release.sh || exit 1
|
|
|
|
install: null
|
2020-02-18 12:22:12 +08:00
|
|
|
|
2020-02-27 02:42:57 +08:00
|
|
|
before_deploy:
|
2020-03-04 06:01:22 +08:00
|
|
|
- echo "$JSON_KEY" | base64 --decode > ./ci/key.json
|
2020-02-27 02:42:57 +08:00
|
|
|
|
2020-02-18 12:22:12 +08:00
|
|
|
deploy:
|
|
|
|
- provider: releases
|
|
|
|
edge: true
|
|
|
|
draft: true
|
2020-03-27 07:27:25 +08:00
|
|
|
overwrite: true
|
2020-02-18 12:22:12 +08:00
|
|
|
tag_name: $TRAVIS_TAG
|
|
|
|
target_commitish: $TRAVIS_COMMIT
|
|
|
|
name: $TRAVIS_TAG
|
|
|
|
file:
|
2020-04-30 19:52:54 +08:00
|
|
|
- release-github/*.tar.gz
|
|
|
|
- release-github/*.zip
|
|
|
|
- release-github/*.deb
|
|
|
|
- release-github/*.rpm
|
2020-02-18 12:22:12 +08:00
|
|
|
on:
|
|
|
|
tags: true
|
2020-02-27 02:42:57 +08:00
|
|
|
- provider: gcs
|
|
|
|
edge: true
|
|
|
|
bucket: "codesrv-ci.cdr.sh"
|
2020-02-28 01:21:40 +08:00
|
|
|
upload_dir: "releases"
|
2020-02-27 02:42:57 +08:00
|
|
|
key_file: ./ci/key.json
|
2020-04-30 19:52:54 +08:00
|
|
|
local_dir: ./release-gcp
|
2020-02-27 02:42:57 +08:00
|
|
|
on:
|
|
|
|
tags: true
|
2020-03-27 04:50:32 +08:00
|
|
|
# TODO: The gcs provider fails to install on arm64.
|
2020-04-30 19:52:54 +08:00
|
|
|
condition: $TRAVIS_CPU_ARCH == amd64
|
|
|
|
- provider: script
|
|
|
|
edge: true
|
|
|
|
# We do not use the travis npm deploy integration as it does not allow us to
|
|
|
|
# deploy a subpath and and v2 which should, just errors out that the src does not exist
|
|
|
|
script: ./ci/steps/publish-npm.sh
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
condition: $TRAVIS_CPU_ARCH == amd64 && $TRAVIS_OS_NAME == linux
|
2020-02-18 12:22:12 +08:00
|
|
|
|
|
|
|
cache:
|
|
|
|
timeout: 600
|
|
|
|
yarn: true
|
2020-03-04 06:11:09 +08:00
|
|
|
directories:
|
2020-04-30 19:52:54 +08:00
|
|
|
- .cache
|
|
|
|
- out
|
|
|
|
- dist
|
2020-03-04 06:11:09 +08:00
|
|
|
- lib/vscode/.build/extensions
|