mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 12:06:21 +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"
|
||||
variables:
|
||||
RAILS_ENV: "production"
|
||||
|
@ -14,7 +19,9 @@ assets:
|
|||
- "git config --global user.email \"${GIT_USER_EMAIL:-$GITLAB_USER_EMAIL}\""
|
||||
- "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\""
|
||||
- "apk add brotli go-task diffutils"
|
||||
- "apk add brotli diffutils"
|
||||
- *add-go-task
|
||||
- *disable-hainish
|
||||
script:
|
||||
- "go-task assets"
|
||||
after_script:
|
||||
|
@ -23,36 +30,43 @@ assets:
|
|||
gem-audit:
|
||||
stage: "test"
|
||||
before_script:
|
||||
- "apk add go-task"
|
||||
- "gem install bundler-audit"
|
||||
- *add-go-task
|
||||
- *disable-hainish
|
||||
script:
|
||||
- "go-task gem-audit"
|
||||
node-audit:
|
||||
stage: "test"
|
||||
before_script:
|
||||
- *add-go-task
|
||||
- *disable-hainish
|
||||
script:
|
||||
- "apk add go-task"
|
||||
- "go-task node-audit"
|
||||
brakeman:
|
||||
stage: "test"
|
||||
rules:
|
||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
||||
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
|
||||
before_script:
|
||||
- "apk add go-task"
|
||||
- *add-go-task
|
||||
- *disable-hainish
|
||||
script:
|
||||
- "go-task bundle -- exec brakeman"
|
||||
rubocop:
|
||||
stage: "test"
|
||||
rules:
|
||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
||||
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
|
||||
before_script:
|
||||
- "apk add go-task"
|
||||
- *add-go-task
|
||||
- *disable-hainish
|
||||
script:
|
||||
- "./bin/modified_files | grep .rb | xargs go-task bundle -- exec rubocop"
|
||||
haml:
|
||||
stage: "test"
|
||||
rules:
|
||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
||||
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
|
||||
before_script:
|
||||
- "apk add go-task"
|
||||
- *add-go-task
|
||||
- *disable-hainish
|
||||
script:
|
||||
- "./bin/modified_files | grep .haml | xargs go-task bundle -- exec haml-lint"
|
||||
|
|
|
@ -7,6 +7,7 @@ shopt:
|
|||
- "globstar"
|
||||
dotenv:
|
||||
- ".env"
|
||||
- ".env.production"
|
||||
tasks:
|
||||
credentials:
|
||||
desc: "Generate credentials file"
|
||||
|
|
Loading…
Reference in a new issue