File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ matrix:
18
18
- VSCODE_VERSION="1.37.0" MAJOR_VERSION="2" VERSION="$MAJOR_VERSION.$TRAVIS_BUILD_NUMBER"
19
19
before_install :
20
20
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then export MINIFY="true"; fi
21
+ - if [[ "$TRAVIS_BRANCH" == "master" ]]; then export PACKAGE="true"; fi
21
22
script :
22
23
- scripts/ci.bash
23
24
before_deploy :
Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ function docker-build() {
33
33
34
34
docker cp ./. " ${containerId} " :/src
35
35
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
40
42
41
43
docker stop " ${containerId} "
42
44
}
@@ -49,15 +51,18 @@ function local-build() {
49
51
}
50
52
51
53
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
54
58
}
55
59
56
60
# Build code-server in the CI.
57
61
function main() {
58
62
local codeServerVersion=" ${VERSION:- } "
59
63
local vscodeVersion=" ${VSCODE_VERSION:- } "
60
64
local ostype=" ${OSTYPE:- } "
65
+ local package=" ${PACKAGE:- } "
61
66
62
67
if [[ -z " ${codeServerVersion} " ]] ; then
63
68
>&2 echo " Must set VERSION environment variable" ; exit 1
You can’t perform that action at this time.
0 commit comments