Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/.travis.yml

77 lines
1.9 KiB
YAML
Raw Normal View History

language: node_js
node_js: node
jobs:
include:
- name: Test
2020-02-19 05:31:40 +01:00
if: tag IS blank
script: ./ci/container/exec.sh ./ci/steps/test.sh
2020-02-19 01:06:35 +01:00
deploy: null
install: null
2020-02-19 01:06:35 +01:00
- name: Linux Release
if: tag IS present
script: ./ci/steps/linux-release.sh
install: null
- name: Linux Release
2020-02-19 01:06:35 +01:00
if: tag IS present
arch: arm64
script: |
sudo apt-get update && sudo apt-get install -y jq || exit 1
./ci/steps/linux-release.sh
install: null
- name: MacOS Release
2020-02-19 01:06:35 +01:00
if: tag IS present
os: osx
# node 13/14 crashes in the build process for some reason.
node_js: 12
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-26 19:42:57 +01:00
before_deploy:
- echo "$JSON_KEY" | base64 --decode > ./ci/key.json
2020-02-26 19:42:57 +01:00
deploy:
- provider: releases
edge: true
draft: true
overwrite: true
tag_name: $TRAVIS_TAG
target_commitish: $TRAVIS_COMMIT
name: $TRAVIS_TAG
file:
- release-github/*.tar.gz
- release-github/*.zip
- release-github/*.deb
- release-github/*.rpm
on:
tags: true
2020-02-26 19:42:57 +01:00
- provider: gcs
edge: true
bucket: "codesrv-ci.cdr.sh"
2020-02-27 18:21:40 +01:00
upload_dir: "releases"
2020-02-26 19:42:57 +01:00
key_file: ./ci/key.json
local_dir: ./release-gcp
2020-02-26 19:42:57 +01:00
on:
tags: true
2020-03-26 21:50:32 +01:00
# TODO: The gcs provider fails to install on arm64.
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
cache:
timeout: 600
yarn: true
2020-03-03 23:11:09 +01:00
directories:
- .cache
- out
- dist
2020-03-03 23:11:09 +01:00
- lib/vscode/.build/extensions