Skip to content

Commit

Permalink
Adapt new Solidus default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
waiting-for-dev committed May 22, 2023
1 parent dd40b83 commit e9b8f72
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ commands:
bundle --version
jobs:
solidus-master:
solidus-main:
executor:
name: solidusio_extensions/sqlite
ruby_version: '3.1'
steps: ['setup', 'solidusio_extensions/run-tests-solidus-master']
steps: ['setup', 'solidusio_extensions/run-tests-solidus-main']
solidus-current:
executor:
name: solidusio_extensions/sqlite
Expand All @@ -44,20 +44,20 @@ jobs:
workflows:
"Run specs on supported Solidus versions":
jobs:
- solidus-master
- solidus-main
- solidus-current
- solidus-older
- lint-code

"Weekly run specs against master":
"Weekly run specs against main":
triggers:
- schedule:
cron: "0 0 * * 4" # every Thursday
filters:
branches:
only:
- master
- main
jobs:
- solidus-master
- solidus-main
- solidus-current
- solidus-older
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
# Specify your gem's dependencies in solidus_dev_support.gemspec
gemspec

branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
gem 'solidus', github: 'solidusio/solidus', branch: branch

# A workaround for https://github.com/bundler/bundler/issues/6677
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ the `DB` and `SOLIDUS_BRANCH` env variables.
DB=[postgres|mysql|sqlite] SOLIDUS_BRANCH=<BRANCH-NAME> bin/sandbox
```

By default we use sqlite3 and the master branch.
By default we use sqlite3 and the main branch.

### Rails generators

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ workflows:
- run-specs-with-mysql
- lint-code

"Weekly run specs against master":
"Weekly run specs against main":
triggers:
- schedule:
cron: "0 0 * * 4" # every Thursday
filters:
branches:
only:
- master
- main
jobs:
- run-specs-with-sqlite
- run-specs-with-postgres
Expand Down
4 changes: 2 additions & 2 deletions lib/solidus_dev_support/templates/extension/Gemfile.tt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
gem 'solidus', github: 'solidusio/solidus', branch: branch

# The solidus_frontend gem has been pulled out since v3.2
gem 'solidus_frontend', github: 'solidusio/solidus_frontend' if branch == 'master'
gem 'solidus_frontend', github: 'solidusio/solidus_frontend' if branch == 'main'
gem 'solidus_frontend' if branch >= 'v3.2' # rubocop:disable Bundler/DuplicatedGem

# Needed to help Bundler figure out how to resolve dependencies,
Expand Down
4 changes: 2 additions & 2 deletions lib/solidus_dev_support/templates/extension/bin/sandbox.tt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ test "$DB" = "sqlite" && export DB="sqlite3"

if [ -z "$SOLIDUS_BRANCH" ]
then
echo "~~> Use 'export SOLIDUS_BRANCH=[master|v3.2|...]' to control the Solidus branch"
SOLIDUS_BRANCH="master"
echo "~~> Use 'export SOLIDUS_BRANCH=[main|v3.2|...]' to control the Solidus branch"
SOLIDUS_BRANCH="main"
fi
echo "~~> Using branch $SOLIDUS_BRANCH of solidus"

Expand Down

0 comments on commit e9b8f72

Please sign in to comment.