Archived
1
0

Fix bugs in CI

This commit is contained in:
Anmol Sethi
2020-02-18 19:06:35 -05:00
parent 1aaa53622d
commit 5681c87e33
12 changed files with 40 additions and 51 deletions

10
ci/lib.sh Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
set_version() {
local code_server_version=${VERSION:-${TRAVIS_TAG:-}}
if [[ -z $code_server_version ]]; then
code_server_version=$(grep version ./package.json | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[:space:]')
fi
export VERSION=$code_server_version
}