More performance tweaks to CI/CD

merge-requests/31/head
Paul Traina 2020-11-10 17:52:17 -08:00
rodzic ca9ad74f4d
commit d14dd3ef13
1 zmienionych plików z 10 dodań i 13 usunięć

Wyświetl plik

@ -30,25 +30,22 @@ before_script:
build_job:
stage: build
rules:
- if: $CI_COMMIT_TAG =~ /^(v|test_).*/
- if: '$CI_COMMIT_TAG =~ /^(v|test_).*/'
artifacts:
paths:
- build/*
script:
- env
- dpkg --add-architecture i386
- apt-get -yq update
- apt-get -yq -o dir::cache::archives="$APT_CACHE_DIR" install npm wine wine32
- apt-get -qq update
- apt-get -qq -o dir::cache::archives="$APT_CACHE_DIR" install -y npm wine wine32
- npm install --prefer-offline
- npm run dist
- mkdir build
- (cd package.nw/dist ; mv *.zip *.exe *.7z *.json ../../build)
- apt-get -yq -o dir::cache::archives="$APT_CACHE_DIR" install build-essential devscripts
- apt-get -yq -o dir::cache::archives="$APT_CACHE_DIR" build-dep .
- apt-get -qq -o dir::cache::archives="$APT_CACHE_DIR" install -y build-essential devscripts
- apt-get -qq -o dir::cache::archives="$APT_CACHE_DIR" build-dep .
- dpkg-buildpackage -uc -us
- mkdir -p build/debian
- mv ../*.{deb,dsc,buildinfo,tar.xz,changes} build/debian/
- ls -R `pwd`/.cache
- (cd package.nw/dist ; mv *.zip *.exe *.7z *.json ../../build)
test_job:
stage: test
@ -56,8 +53,8 @@ test_job:
<<: *global_cache
policy: pull
script:
- apt-get update
- apt-get -yq -o dir::cache::archives="$APT_CACHE_DIR" install npm
- apt-get -qq update
- apt-get -qq -o dir::cache::archives="$APT_CACHE_DIR" install -y npm
- rm -rf package.nw/dist
- npm install --prefer-offline
- npm test
@ -66,13 +63,13 @@ release_job:
stage: deploy
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG =~ /^(v|test_).*/ && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: '$CI_COMMIT_TAG =~ /^(v|test_).*/'
needs:
- job: build_job
script:
- echo 'Release for $CI_COMMIT_TAG'
release:
name: 'Release $CI_COMMIT_TAG'
name: 'GridTracker $CI_COMMIT_TAG'
description: debian/changelog
tag_name: '$CI_COMMIT_TAG'
ref: '$CI_COMMIT_SHA'