further work on gitlab-ci.yml

This commit is contained in:
Jonas Heinrich 2020-11-26 10:59:14 +01:00
parent 0f7534e7f8
commit 8ee042e782
7 changed files with 18 additions and 27 deletions

View File

@ -1,39 +1,27 @@
stages:
- compiling
- assembling
- testing
- signing
- packaging
- publishing
# - testing
# - signing
# - packaging
# - publishing
image: ubuntu:20.04
image: ubuntu:20.10
Compile:
stage: compiling
script:
- apt update
- DEBIAN_FRONTEND="noninteractive" apt install -y npm
- npm install
- if [ "${CI_COMMIT_REF_NAME}" == "stable" ] ; then npm run build:prod ; fi
- if [ "${CI_COMMIT_REF_NAME}" != "stable" ] ; then npm run build:nightly ; fi
artifacts:
paths:
- ./src/js/Static/*
- ./src/l10n/*
- ./src/css/*
- make dev-setup
- make build-js
Assemble:
stage: assembling
script:
- mkdir passwords
- if [ "${CI_COMMIT_REF_NAME}" == "stable" ] ; then sed -i -e "s/-BUILD//g" ./src/appinfo/info.xml ; fi
- if [ "${CI_COMMIT_REF_NAME}" != "stable" ] ; then sed -i -e "s/-BUILD/-build${CI_PIPELINE_ID}/g" ./src/appinfo/info.xml ; fi
- rsync -r --exclude="vue" --exclude="js" --exclude="scss" src/* passwords
- rsync -r src/js/Static passwords/js/
- cp CHANGELOG.md passwords/
artifacts:
paths:
- ./passwords
- wget https://github.com/ChristophWurst/krankerl/releases/download/v0.12.3/krankerl_0.12.3_amd64.deb
- sudo dpkg -i krankerl_0.12.3_amd64.deb
- krankerl package
PHPUnit:
stage: testing

View File

@ -5,6 +5,7 @@
/.gitignore
/.gitlab-ci.yml
/.l10nignore
/.nextcloudignore
/node_modules
/.npmignore
/babel.config.js
@ -17,6 +18,7 @@
/screenshot.png
/src
/stylelint.config.js
/Release.md
/.tx
/utils
/webpack.js

View File

@ -1,4 +1,8 @@
## 1.0.1 - 2020-12
### Added
- Support prepare a release with Krankerl
[#200](https://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/200) @onny
### Fixed
- Add AGPL headers
[#206](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/206) @onny

View File

@ -53,5 +53,5 @@ clean:
clean-dev:
rm -rf node_modules
appstore:
release:
krankerl package

View File

@ -72,7 +72,7 @@ Contribute translations via
[Transifex](https://www.transifex.com/project-insanityorg/radio-2/dashboard/)!
### Prepare a release
Consoult [Readme.md] on how to prepare a release for Gitlab and the app store.
Consoult [Release.md](Release.md) on how to prepare a release for Gitlab and the app store.
## Reporting bugs

View File

@ -1,4 +1 @@
[package]
before_cmds = [
'make all'
]

View File