未验证 提交 a2ee6c8e 编写于 作者: A Asher

Don't build on tags

上级 ef069d9b
language: node_js language: node_js
node_js: node_js:
- 10.16.0 - 10.16.0
services: services:
- docker - docker
matrix:
include:
- os: linux
dist: trusty
env:
- VSCODE_VERSION="1.38.1" MAJOR_VERSION="2" VERSION="$MAJOR_VERSION.$TRAVIS_BUILD_NUMBER" TARGET="linux"
- os: linux
dist: trusty
env:
- VSCODE_VERSION="1.38.1" MAJOR_VERSION="2" VERSION="$MAJOR_VERSION.$TRAVIS_BUILD_NUMBER" TARGET="alpine"
- os: osx
env:
- VSCODE_VERSION="1.38.1" MAJOR_VERSION="2" VERSION="$MAJOR_VERSION.$TRAVIS_BUILD_NUMBER"
before_install: before_install:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then export MINIFY="true"; fi - export MAJOR_VERSION="2"
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then export PACKAGE="true"; fi - export VSCODE_VERSION="1.38.1"
script: - export VERSION="$MAJOR_VERSION.$TRAVIS_BUILD_NUMBER"
- travis_wait 30 scripts/ci.bash - if [[ "$TRAVIS_BRANCH" == "master" ]]; then export MINIFY="true"; fi
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then export PACKAGE="true"; fi
# Don't build on tags because we'll already have built the commit.
jobs:
include:
- name: "Linux build"
os: linux
dist: trusty
env: TARGET="linux"
if: tag IS blank
- name: "Alpine build"
os: linux
dist: trusty
env: TARGET="alpine"
if: tag IS blank
- name: "MacOS build"
os: osx
if: tag IS blank
git:
depth: 3
script: travis_wait 30 scripts/ci.bash
before_deploy: before_deploy:
- echo "$VERSION-vsc$VSCODE_VERSION" "$TRAVIS_COMMIT" - echo "$VERSION-vsc$VSCODE_VERSION" "$TRAVIS_COMMIT"
- git config --local user.name "$USER_NAME" - git config --local user.name "$USER_NAME"
- git config --local user.email "$USER_EMAIL" - git config --local user.email "$USER_EMAIL"
- git tag "$VERSION-vsc$VSCODE_VERSION" "$TRAVIS_COMMIT" - git tag "$VERSION-vsc$VSCODE_VERSION" "$TRAVIS_COMMIT"
deploy: deploy:
provider: releases provider: releases
file_glob: true file_glob: true
...@@ -42,8 +55,9 @@ deploy: ...@@ -42,8 +55,9 @@ deploy:
on: on:
repo: cdr/code-server repo: cdr/code-server
branch: master branch: master
cache: cache:
yarn: true yarn: true
timeout: 1000 timeout: 1000
directories: directories:
- .cache - .cache
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册