2020-11-04 01:22:11 +00:00
|
|
|
# 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
|
|
|
|
|
2020-11-04 01:40:43 +00:00
|
|
|
variables:
|
|
|
|
DEFAULT_IMAGE: debian:stable
|
|
|
|
|
|
|
|
default:
|
|
|
|
image: ${DEFAULT_IMAGE}
|
|
|
|
interruptible: true
|
2020-11-04 01:22:11 +00:00
|
|
|
|
2020-11-09 07:36:55 +00:00
|
|
|
cache:
|
|
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
|
|
paths:
|
|
|
|
- .cache/
|
|
|
|
|
|
|
|
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"
|
|
|
|
- export APT_CACHE_DIR=`pwd`/.cache/apt && mkdir -pv $APT_CACHEDIR
|
|
|
|
- export NPM_CONFIG_CACHE=APT_CACHE_DIR=`pwd`/.cache/npm && mkdir -pv $NPM_CONFIG_CACHE
|
|
|
|
- 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 quilt
|
|
|
|
- apt-get -y build-dep .
|
|
|
|
- npm install
|
2020-11-04 01:22:11 +00:00
|
|
|
|
2020-11-04 01:45:00 +00:00
|
|
|
# after_script:
|
|
|
|
# - echo "After script section"
|
|
|
|
# - echo "For example you might do some cleanup here"
|
2020-11-04 01:22:11 +00:00
|
|
|
|
2020-11-08 00:33:36 +00:00
|
|
|
build:
|
2020-11-04 01:22:11 +00:00
|
|
|
stage: build
|
2020-11-04 01:45:00 +00:00
|
|
|
only:
|
|
|
|
- tags
|
2020-11-04 01:22:11 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/*
|
2020-11-08 00:33:36 +00:00
|
|
|
expire_in: 1 week
|
2020-11-04 01:22:11 +00:00
|
|
|
script:
|
|
|
|
- dpkg-buildpackage -uc -us
|
2020-11-07 22:58:20 +00:00
|
|
|
- mkdir build build/debian
|
|
|
|
- mv ../*.{deb,dsc,buildinfo,tar.xz,changes} build/debian/
|
|
|
|
- npm run dist
|
2020-11-07 23:56:00 +00:00
|
|
|
- (cd package.nw/dist ; mv *.zip *.exe *.7z *.json ../../build)
|
2020-11-04 20:29:13 +00:00
|
|
|
|
2020-11-08 00:33:36 +00:00
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
- branches
|
|
|
|
except:
|
|
|
|
- master
|
2020-11-09 07:36:55 +00:00
|
|
|
script:
|
|
|
|
- npm test
|
2020-11-08 00:33:36 +00:00
|
|
|
|
2020-11-04 20:29:13 +00:00
|
|
|
# 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"
|