Don't build on tags
This commit is contained in:
parent
ef069d9b0e
commit
a2ee6c8e73
62
.travis.yml
62
.travis.yml
@ -1,31 +1,44 @@
|
|||||||
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:
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user