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

View File

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

View File

@ -1,4 +1,8 @@
## 1.0.1 - 2020-12 ## 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 ### Fixed
- Add AGPL headers - Add AGPL headers
[#206](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/206) @onny [#206](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/206) @onny

View File

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

View File

@ -72,7 +72,7 @@ Contribute translations via
[Transifex](https://www.transifex.com/project-insanityorg/radio-2/dashboard/)! [Transifex](https://www.transifex.com/project-insanityorg/radio-2/dashboard/)!
### Prepare a release ### 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 ## Reporting bugs

View File

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

View File