1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-28 05:05:25 +00:00
code-server-2/.travis.yml

59 lines
1.5 KiB
YAML
Raw Normal View History

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