mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 12:16:23 +00:00
ci: disable hainish + dry
This commit is contained in:
parent
2bf907aa00
commit
ad017f5598
2 changed files with 23 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
.add-go-task: &add-go-task
|
||||||
|
- "apk add go-task"
|
||||||
|
.disable-hainish: &disable-hainish
|
||||||
|
- "echo \"HAINISH=\" >> .env.production"
|
||||||
|
|
||||||
image: "gitea.nulo.in/sutty/panel:3.17.3-3.1.4-rails"
|
image: "gitea.nulo.in/sutty/panel:3.17.3-3.1.4-rails"
|
||||||
variables:
|
variables:
|
||||||
RAILS_ENV: "production"
|
RAILS_ENV: "production"
|
||||||
|
@ -14,7 +19,9 @@ assets:
|
||||||
- "git config --global user.email \"${GIT_USER_EMAIL:-$GITLAB_USER_EMAIL}\""
|
- "git config --global user.email \"${GIT_USER_EMAIL:-$GITLAB_USER_EMAIL}\""
|
||||||
- "git config --global user.name \"${GIT_USER_NAME:-$GITLAB_USER_NAME}\""
|
- "git config --global user.name \"${GIT_USER_NAME:-$GITLAB_USER_NAME}\""
|
||||||
- "git remote set-url --push origin \"https://${GITLAB_USERNAME}:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git\""
|
- "git remote set-url --push origin \"https://${GITLAB_USERNAME}:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git\""
|
||||||
- "apk add brotli go-task diffutils"
|
- "apk add brotli diffutils"
|
||||||
|
- *add-go-task
|
||||||
|
- *disable-hainish
|
||||||
script:
|
script:
|
||||||
- "go-task assets"
|
- "go-task assets"
|
||||||
after_script:
|
after_script:
|
||||||
|
@ -23,36 +30,43 @@ assets:
|
||||||
gem-audit:
|
gem-audit:
|
||||||
stage: "test"
|
stage: "test"
|
||||||
before_script:
|
before_script:
|
||||||
- "apk add go-task"
|
|
||||||
- "gem install bundler-audit"
|
- "gem install bundler-audit"
|
||||||
|
- *add-go-task
|
||||||
|
- *disable-hainish
|
||||||
script:
|
script:
|
||||||
- "go-task gem-audit"
|
- "go-task gem-audit"
|
||||||
node-audit:
|
node-audit:
|
||||||
stage: "test"
|
stage: "test"
|
||||||
|
before_script:
|
||||||
|
- *add-go-task
|
||||||
|
- *disable-hainish
|
||||||
script:
|
script:
|
||||||
- "apk add go-task"
|
- "apk add go-task"
|
||||||
- "go-task node-audit"
|
- "go-task node-audit"
|
||||||
brakeman:
|
brakeman:
|
||||||
stage: "test"
|
stage: "test"
|
||||||
rules:
|
rules:
|
||||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
|
||||||
before_script:
|
before_script:
|
||||||
- "apk add go-task"
|
- *add-go-task
|
||||||
|
- *disable-hainish
|
||||||
script:
|
script:
|
||||||
- "go-task bundle -- exec brakeman"
|
- "go-task bundle -- exec brakeman"
|
||||||
rubocop:
|
rubocop:
|
||||||
stage: "test"
|
stage: "test"
|
||||||
rules:
|
rules:
|
||||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
|
||||||
before_script:
|
before_script:
|
||||||
- "apk add go-task"
|
- *add-go-task
|
||||||
|
- *disable-hainish
|
||||||
script:
|
script:
|
||||||
- "./bin/modified_files | grep .rb | xargs go-task bundle -- exec rubocop"
|
- "./bin/modified_files | grep .rb | xargs go-task bundle -- exec rubocop"
|
||||||
haml:
|
haml:
|
||||||
stage: "test"
|
stage: "test"
|
||||||
rules:
|
rules:
|
||||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
|
||||||
before_script:
|
before_script:
|
||||||
- "apk add go-task"
|
- *add-go-task
|
||||||
|
- *disable-hainish
|
||||||
script:
|
script:
|
||||||
- "./bin/modified_files | grep .haml | xargs go-task bundle -- exec haml-lint"
|
- "./bin/modified_files | grep .haml | xargs go-task bundle -- exec haml-lint"
|
||||||
|
|
|
@ -7,6 +7,7 @@ shopt:
|
||||||
- "globstar"
|
- "globstar"
|
||||||
dotenv:
|
dotenv:
|
||||||
- ".env"
|
- ".env"
|
||||||
|
- ".env.production"
|
||||||
tasks:
|
tasks:
|
||||||
credentials:
|
credentials:
|
||||||
desc: "Generate credentials file"
|
desc: "Generate credentials file"
|
||||||
|
|
Loading…
Reference in a new issue