Skip to content

Commit ccc4f87

Browse files
committed
Don't package for release if we don't need to
1 parent 534600c commit ccc4f87

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ matrix:
1818
- VSCODE_VERSION="1.37.0" MAJOR_VERSION="2" VERSION="$MAJOR_VERSION.$TRAVIS_BUILD_NUMBER"
1919
before_install:
2020
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then export MINIFY="true"; fi
21+
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then export PACKAGE="true"; fi
2122
script:
2223
- scripts/ci.bash
2324
before_deploy:

scripts/ci.bash

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ function docker-build() {
3333

3434
docker cp ./. "${containerId}":/src
3535
docker-exec build
36-
docker-exec binary
37-
docker-exec package
38-
mkdir -p release
39-
docker cp "${containerId}":/src/release/. ./release/
36+
if [[ -n "${package}" ]] ; then
37+
docker-exec binary
38+
docker-exec package
39+
mkdir -p release
40+
docker cp "${containerId}":/src/release/. ./release/
41+
fi
4042

4143
docker stop "${containerId}"
4244
}
@@ -49,15 +51,18 @@ function local-build() {
4951
}
5052

5153
local-exec build
52-
local-exec binary
53-
local-exec package
54+
if [[ -n "${package}" ]] ; then
55+
local-exec binary
56+
local-exec package
57+
fi
5458
}
5559

5660
# Build code-server in the CI.
5761
function main() {
5862
local codeServerVersion="${VERSION:-}"
5963
local vscodeVersion="${VSCODE_VERSION:-}"
6064
local ostype="${OSTYPE:-}"
65+
local package="${PACKAGE:-}"
6166

6267
if [[ -z "${codeServerVersion}" ]] ; then
6368
>&2 echo "Must set VERSION environment variable"; exit 1

0 commit comments

Comments
 (0)