gridtracker/.gitlab-ci.yml

60 wiersze
1.5 KiB
YAML

# This file is a template, and might need editing before it works on your project.
# see https://docs.gitlab.com/ee/ci/yaml/README.html for all available options
variables:
DEFAULT_IMAGE: debian:stable
default:
image: ${DEFAULT_IMAGE}
interruptible: true
# before_script:
# - echo "Before script section"
# - echo "For example you might run an update here or install a build dependency"
# - echo "Or perhaps you might print out some debugging details"
# after_script:
# - echo "After script section"
# - echo "For example you might do some cleanup here"
build1:
stage: build
only:
- tags
artifacts:
paths:
- build/*
script:
- dpkg --add-architecture i386
- apt-get update
- apt-get -y install npm wine wine32
- apt-get -y install git dh-make build-essential devscripts lintian diffutils patch \
patchutils quilt
- apt-get -y build-dep .
- dpkg-buildpackage -uc -us
- mkdir build build/debian
- mv ../*.{deb,dsc,buildinfo,tar.xz,changes} build/debian/
- debian/rules clean
- npm install
- npm run dist
- (cd package.nw/build ; mv *.zip *.exe *.7z *.json ../build)
# test1:
# stage: test
# script:
# - echo "Do a test here"
# - echo "For example run a test suite"
#
# test2:
# stage: test
# script:
# - echo "Do another parallel test here"
# - echo "For example run a lint test"
#
# deploy1:
# stage: deploy
# only:
# - tags
# script:
# - echo "Do your deploy here"