File tree 6 files changed +59
-185
lines changed
6 files changed +59
-185
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ language : minimal
2
+
3
+ jobs :
4
+ include :
5
+ - stage : Code
6
+ name : Format
7
+ script : ./ci/image/run.sh "yarn && yarn vscode && yarn fmt"
8
+ - name : Lint
9
+ script : ./ci/image/run.sh "yarn && yarn vscode && yarn lint"
10
+ - name : Test
11
+ script : ./ci/image/run.sh "yarn && yarn vscode && yarn test"
12
+
13
+ - stage : Release
14
+ name : Linux Release
15
+ script : travis_wait 60 ./ci/image/run.sh "yarn && yarn vscode && ci/release.sh"
16
+ - name : Linux ARM64 Release
17
+ script : travis_wait 60 ./ci/image/run.sh "yarn && yarn vscode && ci/release.sh"
18
+ arch : arm64
19
+ - name : MacOS Release
20
+ os : osx
21
+ language : node_js
22
+ node_js : 12
23
+ script : yarn && yarn vscode && travis_wait 60 ci/release.sh
24
+
25
+ stages :
26
+ - name : Code
27
+ - name : Release
28
+ if : $TRAVIS_TAG != ""
29
+
30
+ deploy :
31
+ - provider : releases
32
+ edge : true
33
+ draft : true
34
+ tag_name : $TRAVIS_TAG
35
+ name : $TRAVIS_TAG
36
+ file :
37
+ - release/*.tar.gz
38
+ - release/*.zip
39
+ on :
40
+ tags : true
41
+ condition : $TRAVIS_BUILD_STAGE_NAME == Release
42
+
43
+ cache :
44
+ timeout : 600
45
+ yarn : true
Original file line number Diff line number Diff line change @@ -248,9 +248,6 @@ class Builder {
248
248
if ( process . env . MINIFY ) {
249
249
await this . task ( `restricting ${ name } to production dependencies` , async ( ) => {
250
250
await util . promisify ( cp . exec ) ( "yarn --production --ignore-scripts" , { cwd : buildPath } )
251
- if ( name === "code-server" ) {
252
- await util . promisify ( cp . exec ) ( "yarn postinstall" , { cwd : buildPath } )
253
- }
254
251
} )
255
252
}
256
253
}
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -euo pipefail
4
+
5
+ main () {
6
+ cd " $( dirname " $0 " ) /../.."
7
+ imageTag=" $( docker build -q ci/image) "
8
+ docker run -t --rm -v " $( yarn cache dir) :/usr/local/share/.cache/yarn/v6" -v " $PWD :/repo" -w /repo " $imageTag " " $@ "
9
+ }
10
+
11
+ main " $@ "
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ set -euo pipefail
7
7
function main() {
8
8
cd " $( dirname " ${0} " ) /.."
9
9
10
- local code_server_version=${VERSION: -${TRAVIS_TAG:- ${DRONE_TAG :- } } }
10
+ local code_server_version=${VERSION-${TRAVIS_TAG- } }
11
11
if [[ -z $code_server_version ]]; then
12
12
code_server_version=$( grep version ./package.json | head -1 | awk -F: ' { print $2 }' | sed ' s/[",]//g' | tr -d ' [:space:]' )
13
13
fi
@@ -16,8 +16,8 @@ function main() {
16
16
YARN_CACHE_FOLDER=" $( pwd) /yarn-cache"
17
17
export YARN_CACHE_FOLDER
18
18
19
- # Always minify and package on tags since that's when releases are pushed.
20
- if [[ -n ${DRONE_TAG :- } || -n ${TRAVIS_TAG : - } ]]; then
19
+ # Always minify and package on CI since that's when releases are pushed.
20
+ if [[ ${CI -} ]]; then
21
21
export MINIFY=" true"
22
22
export PACKAGE=" true"
23
23
fi
You can’t perform that action at this time.
0 commit comments