Skip to content

Commit

Permalink
Merge pull request #118 from agileware-jp/add_circleci_job
Browse files Browse the repository at this point in the history
add circleci job
  • Loading branch information
kumojima authored Nov 18, 2024
2 parents 3acfba1 + 80b7027 commit 34537be
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,33 @@ orbs:
RAILS_ENV=test bundle exec rake redmine:plugins:test PLUGIN=`cat .tested_plugin`
working_directory: << parameters.redmine_root >>
jobs:
run-tests-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
- plugin-test/run-tests
run-tests:
executor:
name: redmine-plugin/ruby-<< parameters.database >>
Expand Down Expand Up @@ -122,6 +149,14 @@ workflows:
run-tests-workflow:
jobs:
- check-asset-js
- run-tests-git-url:
<<: *default_context
name: test 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
- run-tests:
<<: *default_context
name: test on supported maximum versions with PostgreSQL
Expand Down

0 comments on commit 34537be

Please sign in to comment.