Skip to content

Commit

Permalink
add circleci job
Browse files Browse the repository at this point in the history
  • Loading branch information
kumojima committed Nov 15, 2024
1 parent 4f1ed55 commit 761e956
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,41 @@
version: 2.1

orbs:
redmine-plugin: agileware-jp/redmine-plugin@3.6.1
redmine-plugin: agileware-jp/redmine-plugin@3.7.0

jobs:
rspec-git-url:
parameters:
redmine_git_url:
type: string
redmine_version:
type: string
ruby_version:
type: string
db:
type: enum
enum: ['mysql', 'pg']
db_version:
type: string
executor:
name: redmine-plugin/ruby-<< parameters.db >>
ruby_version: << parameters.ruby_version >>
db_version: << parameters.db_version >>
steps:
- checkout
- redmine-plugin/download-redmine-git-url:
git_url: << parameters.redmine_git_url >>
version: << parameters.redmine_version >>
- redmine-plugin/install-self
- redmine-plugin/generate-database_yml
- redmine-plugin/bundle-install
- redmine-plugin/migrate-without-plugins
- run: sudo apt-get install fonts-migmix
- redmine-plugin/rspec:
test_migration_rollback: false
- store_artifacts:
path: redmine/tmp/capybara
destination: screenshots
rspec:
parameters:
redmine_version:
Expand Down Expand Up @@ -47,6 +79,15 @@ workflows:
version: 2
test:
jobs:
- rspec-git-url:
<<: *default_context
<<: *ignore_trial
name: RSpec on Redmine git with PostgreSQL
redmine_git_url: $REDMINE_GIT_URL
redmine_version: $REDMINE_GIT_REVISION
ruby_version: $REDMINE_GIT_RUBY_VERSION
db: pg
db_version: $POSTGRES_VERSION
- rspec:
<<: *default_context
<<: *ignore_trial
Expand Down

0 comments on commit 761e956

Please sign in to comment.