mirror of https://gitlab.com/pamhyr/pamhyr2
104 lines
2.1 KiB
YAML
104 lines
2.1 KiB
YAML
stages:
|
|
- build
|
|
- test
|
|
- release
|
|
|
|
#########
|
|
# BUILD #
|
|
#########
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- echo "TODO build pamhyr"
|
|
|
|
# build-lang:
|
|
# stage: build
|
|
# script:
|
|
# - cd ./src/lang/
|
|
# - ./create_ts.sh
|
|
|
|
#########
|
|
# TESTS #
|
|
#########
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- echo "TODO PAMHYR tests"
|
|
|
|
############
|
|
# PACKAGES #
|
|
############
|
|
|
|
linux-package:
|
|
stage: release
|
|
tags:
|
|
- release
|
|
- linux
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH == 'master'
|
|
- if: $CI_COMMIT_TAG
|
|
when: never
|
|
artifacts:
|
|
paths:
|
|
# - packages/pamhyr-src.tar.gz
|
|
- packages/pamhyr-gnulinux-amd64.tar.xz
|
|
script:
|
|
- cd packages
|
|
- ./linux.sh
|
|
|
|
windows-package:
|
|
stage: release
|
|
tags:
|
|
- release
|
|
- wine
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH == 'master'
|
|
- if: $CI_COMMIT_TAG
|
|
when: never
|
|
artifacts:
|
|
paths:
|
|
- packages/pamhyr-win-amd64.zip
|
|
- packages/pamhyr-win-amd64.exe
|
|
script:
|
|
- cd packages
|
|
- ./wine.sh ci
|
|
|
|
tag-release:
|
|
stage: release
|
|
tags:
|
|
- release
|
|
- linux
|
|
- wine
|
|
rules:
|
|
- if: $CI_COMMIT_TAG
|
|
artifacts:
|
|
paths:
|
|
- packages/pamhyr-gnulinux-amd64.tar.xz
|
|
- packages/pamhyr-win-amd64.zip
|
|
- packages/pamhyr-win-amd64.exe
|
|
script:
|
|
- cd packages
|
|
- ./linux.sh
|
|
- ./wine.sh ci
|
|
release:
|
|
name: '$CI_COMMIT_TAG-release'
|
|
description: 'Automatic release from tag $CI_COMMIT_TAG'
|
|
tag_name: '$CI_COMMIT_TAG'
|
|
ref: '$CI_COMMIT_SHA'
|
|
assets:
|
|
links:
|
|
- name: 'GNU/Linux amd64 (tar.xz)'
|
|
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/packages/pamhyr-gnulinux-amd64.tar.xz'
|
|
filepath: '/packages/pamhyr-gnulinux-amd64.tar.xz'
|
|
link_type: 'Packages'
|
|
- name: 'Windows amd64 (zip)'
|
|
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/packages/pamhyr-win-amd64.zip'
|
|
filepath: '/packages/pamhyr-win-amd64.zip'
|
|
link_type: 'Packages'
|
|
- name: 'Windows amd64 (exe)'
|
|
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/packages/pamhyr-win-amd64.exe'
|
|
filepath: '/packages/pamhyr-win-amd64.exe'
|
|
link_type: 'Packages'
|