Add back travis since github actions is trash

This commit is contained in:
Anmol Sethi
2020-02-17 23:22:12 -05:00
parent 0d31a51eeb
commit eb3cf303ad
8 changed files with 62 additions and 201 deletions

View File

@@ -7,17 +7,14 @@ set -euo pipefail
function main() {
cd "$(dirname "${0}")/.."
local code_server_version=${VERSION:-${TRAVIS_TAG:-${DRONE_TAG:-}}}
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
YARN_CACHE_FOLDER="$(pwd)/yarn-cache"
export YARN_CACHE_FOLDER
# Always minify and package on tags since that's when releases are pushed.
if [[ -n ${DRONE_TAG:-} || -n ${TRAVIS_TAG:-} ]]; then
# Always minify and package on CI since that's when releases are pushed.
if [[ ${CI:-} ]]; then
export MINIFY="true"
export PACKAGE="true"
fi