choose better names

This commit is contained in:
jem 2021-02-12 13:26:24 +01:00
parent 113bd080ac
commit 72afd80373

View file

@ -1,5 +1,5 @@
stages: stages:
- test - build_and_test
- package - package
- security - security
- upload - upload
@ -29,23 +29,35 @@ stages:
- cp target/mastodon-bot.js.sha512 target/npm-build/ - cp target/mastodon-bot.js.sha512 target/npm-build/
- cp README.md target/npm-build/ - cp README.md target/npm-build/
build: build_and_test:
<<: *cljs <<: *cljs
stage: test stage: build_and_test
script: script:
- shadow-cljs compile test - shadow-cljs compile test
#activate as soon as https://github.com/thheller/shadow-cljs/issues/843 is implemented
.report:
<<: *cljs
stage: build_and_test
script:
- shadow-cljs run shadow.cljs.build-report app target/build-report.html
artifacts:
paths:
- target/build-report.html
package: package:
<<: *cljs <<: *cljs
stage: package stage: package
artifacts:
paths:
- target/
script: script:
- shadow-cljs compile app - shadow-cljs compile app
- chmod a+x target/mastodon-bot.js - chmod a+x target/mastodon-bot.js
- sha256sum target/mastodon-bot.js > target/mastodon-bot.js.sha256 - sha256sum target/mastodon-bot.js > target/mastodon-bot.js.sha256
- sha512sum target/mastodon-bot.js > target/mastodon-bot.js.sha512 - sha512sum target/mastodon-bot.js > target/mastodon-bot.js.sha512
artifacts:
paths:
- target/mastodon-bot.js
- target/mastodon-bot.js.sha256
- target/mastodon-bot.js.sha512
sast: sast:
variables: variables:
@ -64,9 +76,11 @@ upload-prerelease:
rules: rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null' - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null'
script: script:
- npm version --no-git-tag-version prerelease
- cp package.json target/npm-build/ - cp package.json target/npm-build/
- npm publish ./target/npm-build --access public - npm publish ./target/npm-build --access public
# unsure wether that's a good idea to bump versions from ci.
#- npm version prerelease -m "[skip-ci] version bump prerelease version"
#- git push
upload-release: upload-release:
<<: *js-upload <<: *js-upload
@ -74,6 +88,5 @@ upload-release:
rules: rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != null' - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != null'
script: script:
- npm version --no-git-tag-version $CI_COMMIT_TAG
- cp package.json target/npm-build/ - cp package.json target/npm-build/
- npm publish ./target/npm-build --access public - npm publish ./target/npm-build --access public