Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
457e3ec
Merge pull request #9158 from spark-solutions/fix/open-api-errors
damianlegawiec Jan 4, 2019
56400f6
OpenAPI linter: don't need to define an example if its exactly the sa…
damianlegawiec Jan 4, 2019
1ddab34
Added OperationId to all Storefront endpoints in OpenAPI docs
damianlegawiec Jan 4, 2019
de0cab5
Fixed OpenAPI definition of error response
damianlegawiec Jan 4, 2019
c50c7e3
Merge pull request #9159 from spark-solutions/fix/open-api-docs-lint-…
damianlegawiec Jan 4, 2019
5d3e8db
return only eligible promotions in CartSerializer
pl-spark Jan 4, 2019
ca29c45
Fixed operation -> operationId
damianlegawiec Jan 4, 2019
3f98790
Allow backend shipping rates for completed orders in :update_shipments
Jan 4, 2019
7c3aaa9
Merge pull request #9157 from spark-solutions/fix/cart-serializer-ord…
damianlegawiec Jan 4, 2019
47a6bb7
Merge pull request #9160 from spark-solutions/fix/shipping_method_res…
damianlegawiec Jan 4, 2019
1573ffa
Replace single prepend decorator with multiple class_evals
damianlegawiec Jan 7, 2019
3e07932
Use API only mode for doorkeeper
damianlegawiec Jan 7, 2019
8710385
Merge pull request #9165 from spark-solutions/fix/remove-doorkeeper-d…
damianlegawiec Jan 7, 2019
12a63d5
Removed duplicate spree version command
damianlegawiec Jan 7, 2019
785d1ad
Target ruby 2.3 in rubocop
damianlegawiec Jan 7, 2019
d87efcc
Add dependency only for Core and Backend (Admin Panel) in extension t…
damianlegawiec Jan 7, 2019
1eb3d61
Require Spree 3.2 as a minimum version
damianlegawiec Jan 7, 2019
288e996
This versioning policy is misleading - we should come up with a prope…
damianlegawiec Jan 7, 2019
2a0624f
Replace Spree 3.6 with 3.7
damianlegawiec Jan 7, 2019
4121dec
Don't try to add frontend assets in extension installer
damianlegawiec Jan 7, 2019
884e988
Merge pull request #9166 from spark-solutions/fix/extension-generator…
damianlegawiec Jan 7, 2019
857c839
Update license.md
mradfaber Jan 7, 2019
c69a8c8
Add CreditCards API V2 endpoint
przemosk Dec 31, 2018
267b17a
Add CreditCards API endpoint documentation
przemosk Dec 31, 2018
2c3e654
CR Remarks
przemosk Jan 1, 2019
f59efe3
Refactor finders
przemosk Jan 2, 2019
2da3e01
Refactor index action
przemosk Jan 2, 2019
dc4066e
Add OrderConcern and include to cart, checkout controller
przemosk Jan 3, 2019
940708c
Extend credit_card controller serializers
przemosk Jan 3, 2019
691beb5
Remarks
przemosk Jan 3, 2019
975d3d5
Add require_spree_current_user method and refactor controllers
przemosk Jan 7, 2019
fc9016c
Merge pull request #9153 from spark-solutions/feature/api-v2-storefro…
damianlegawiec Jan 8, 2019
aff840a
sass -> sassc
joshRpowell Oct 25, 2018
e08e8fd
Bump bootstrap-sass to 3.4 to replace sass with sassc
damianlegawiec Jan 8, 2019
ba893d5
Added sass -> sassc to Release Notes
damianlegawiec Jan 8, 2019
dd191bc
Merge pull request #9168 from spark-solutions/feature/replace-sass-wi…
damianlegawiec Jan 8, 2019
bcb8cc3
Added missing operationIds for Storefront Credit Card endpoints
damianlegawiec Jan 8, 2019
bfa8028
Extracted 3.6 to 3.7 upgrade guide to a seperate doc
damianlegawiec Jan 2, 2019
e8c8e09
Add information about dropping ruby 2.2 support
damianlegawiec Jan 2, 2019
d893704
Bump spree gateway and spree auth devise to 3.4 in Installation Instr…
damianlegawiec Jan 8, 2019
2f80fed
Removed outdated bundler warning
damianlegawiec Jan 8, 2019
5426c92
Updated 3.7 noteworthy changes
damianlegawiec Jan 9, 2019
fb8d2b4
add specs to services object spree cart
gingray Dec 27, 2018
0eb1069
Added Major features to 3.7 release notes
damianlegawiec Jan 9, 2019
8eace28
Merge pull request #9150 from gingray/specs/add-specs-on-card-services
damianlegawiec Jan 9, 2019
21c7c96
Use 3.4 versions of spree gateway / auth devise in 3.7 release notes
damianlegawiec Jan 9, 2019
6fa7c2d
Merge pull request #9169 from spark-solutions/docs/3-7-release-notes-…
damianlegawiec Jan 10, 2019
9b297ec
Switch back to sass for now
damianlegawiec Jan 10, 2019
3f94a54
Merge pull request #9172 from spark-solutions/fix/revert-sassc
damianlegawiec Jan 10, 2019
5aba7ce
Remove duplicate `use_refresh_token` in Doorkeeper initializer
damianlegawiec Jan 10, 2019
922e858
Fixed documentation how to create a Bearer token
damianlegawiec Jan 10, 2019
7bd85d9
small spelling fixes in 3.7 release notes
damianlegawiec Jan 10, 2019
a042ff7
Describe refresh OAuth token reauest
damianlegawiec Jan 10, 2019
516ef28
Merge pull request #9174 from spark-solutions/docs/doorkeeper-refresh…
damianlegawiec Jan 10, 2019
e69737a
STI fix needed for Image Decorator
damianlegawiec Jan 11, 2019
289ccf8
Merge pull request #9175 from spark-solutions/docs/image-decorator-st…
damianlegawiec Jan 11, 2019
4fc0d4d
Update README for 3.7 release
damianlegawiec Jan 11, 2019
bc9ad98
Bump version to 3.7.0.rc1
damianlegawiec Jan 11, 2019
db0ff58
Merge pull request #9177 from spark-solutions/release/3-7-0-rc1
damianlegawiec Jan 11, 2019
8b7829f
Added missing CoffeScript removal notice in 3.7 release notes
damianlegawiec Jan 11, 2019
a303076
Fixed github compare link and MySQL description
damianlegawiec Jan 11, 2019
107534d
Merge pull request #9178 from spark-solutions/docs/3-7-coffee-script-…
damianlegawiec Jan 11, 2019
785af0d
Requirey ruby 2.3.3
damianlegawiec Jan 11, 2019
386ad6e
Fixed #9179 copy over also API migrations
damianlegawiec Jan 11, 2019
9cf5a32
Merge pull request #9180 from spark-solutions/fix/9179-copy-api-migra…
damianlegawiec Jan 11, 2019
5bb6956
Fixed - removed duplicate State Changes header
damianlegawiec Jan 13, 2019
420199c
Fixed - don't display Store change option if User doesn't have access…
damianlegawiec Jan 13, 2019
3dbaa1a
Don't include Account link in Admin if the currently signed in user d…
damianlegawiec Jan 13, 2019
6957571
Merge pull request #9181 from spark-solutions/fix/require-ruby-2-3-3
damianlegawiec Jan 14, 2019
ecd6e7a
Merge pull request #9182 from spark-solutions/fix/admin-privilages-fixes
damianlegawiec Jan 14, 2019
556fb6f
Add missing Spree namespace in LineItem and Variant models
fkoessler Jan 14, 2019
e9f1eea
Merge pull request #9184 from khawatechnology/add-missing-namespaces
damianlegawiec Jan 14, 2019
0d72220
Initial Gatsby setup
Nov 15, 2018
683eeda
remove debug log
Nov 15, 2018
7d92624
Add Algolia Docsearch
Nov 16, 2018
b5c9675
Search tweaks
Nov 16, 2018
2bba5ae
Multiple style fixes. DocSearch css.
Nov 16, 2018
491e55e
Add Sitemap functionality
Nov 16, 2018
9a0d0e6
Include new guides files in gitignore
damianlegawiec Nov 16, 2018
ad629ae
Rewrite page generation queries and sidebar navigation. Fix favicon.
Nov 19, 2018
e23cd71
More Sidebar fixes
Nov 19, 2018
92cc694
Fix images
Nov 19, 2018
16d9e73
Fix minor warnings
Nov 19, 2018
2dd1a38
Fix header active style
Nov 19, 2018
c8ad413
Fix sidebar indexes
Nov 20, 2018
877a9a7
Images refactor
Nov 20, 2018
d090be1
Fix image path
Nov 20, 2018
83b54b8
Fix Sidebar headers click
Nov 21, 2018
cc110e7
Test out sorting
Nov 21, 2018
50ea97b
Add css-in-js with emotion
Nov 21, 2018
14db3f6
Fix now version
Nov 21, 2018
842cdc7
Remove Header.css
Nov 21, 2018
743f266
Tweak search. Test custom components.
Nov 21, 2018
d17a27f
Implement autolinking manually with custom tags
Nov 21, 2018
d875ac7
Minor sidebar style fix
Nov 21, 2018
6584d32
Icon color fix
Nov 21, 2018
c35dc20
Add Json and Status components to replace <%= json %> and <%= headers %>
Nov 21, 2018
76108dd
Update packages
Nov 22, 2018
bdbc700
More custom components
Nov 22, 2018
cb97551
Multiple sample data additions and fixes, and docs markup fixes
Nov 22, 2018
a0907e8
Alert component
Nov 23, 2018
14dc832
Add Params component
Nov 26, 2018
014422c
Make output less noisy. More style fixes.
Nov 27, 2018
07dbdad
Fix syntax highlight of samples
Nov 27, 2018
a99e527
Not found alert type + multiple json fixes
Nov 27, 2018
b0940ac
More content markup fixes
Nov 27, 2018
8358153
More content fixes
Nov 27, 2018
c328509
No api key helper
Nov 27, 2018
4060605
Update dependencies
Nov 28, 2018
085ce54
Fix SEO urls
Nov 28, 2018
cdd859e
Fix normalizing section names
Nov 28, 2018
b495bc3
Cleanup layout
Nov 29, 2018
b2ef9c0
Try ReDoc for api v2
Dec 3, 2018
bae3ab1
Remove openapi yaml filesystem path
Dec 3, 2018
6282a0c
API version select page
Dec 3, 2018
d6708fb
Remove PoweredBy
Dec 3, 2018
9379df7
Sidebar tweaks
Dec 3, 2018
be1b421
Use external CSS file. Fix ReDoc sidebar icon.
Dec 4, 2018
f0e1b2c
Add Hr component
Dec 4, 2018
5630821
Fix Hr style
Dec 4, 2018
d77c334
Use spark api docs repo.
Dec 4, 2018
240d2d9
Fix sidebar icons
Dec 4, 2018
9d7433a
Fix sidebar scrolling
Dec 4, 2018
709c7ef
Use spree/spree source for spec
Dec 4, 2018
9c632e1
Add robots.txt plugin
Dec 4, 2018
cbb3fcf
Cleanup. Update emotion to v10
Dec 5, 2018
daf01dd
Initial responsive fixes
Dec 7, 2018
32fa080
Use sidebar as mobile nav (WIP)
Dec 11, 2018
fb535cc
Mobile sidebar fixes
Dec 11, 2018
6e04484
Show/hide search on mobile
Dec 13, 2018
3032a24
Fix sidebar font size
Dec 13, 2018
d853d1a
Fix DocSearch responsive styles
Dec 13, 2018
52e0ca2
Simplify Sidebar a bit
Dec 17, 2018
079d775
Mobile fixes.
Dec 17, 2018
bca8c42
Fix sidebarRoot prop types
Dec 17, 2018
cfe1966
Add more links to sidebar api
Dec 17, 2018
2855492
Fix header link padding
Dec 18, 2018
49012e5
Fix active section for v2 sidebar
Dec 18, 2018
02639d2
Mobile sidebar fixes
Dec 18, 2018
097b30b
Fix some markdown
Dec 18, 2018
7217499
More functional and simpler Sidebar component
Dec 19, 2018
1774b5c
Cleanup
Dec 19, 2018
c346326
Add breadcrumbs to openapi pages
Dec 20, 2018
d4d45df
Breadcrumb fixes
Dec 20, 2018
71f1747
Fix header offset
Dec 24, 2018
8a963f6
Implement different section sorting based on section name
Dec 24, 2018
56c0d10
Make some code fonts smaller
Dec 24, 2018
06626fc
Style tweaks
Dec 27, 2018
f959626
ReDoc style tweaks
Dec 27, 2018
0eb8db8
Partially replace prism with codemirror.
Dec 28, 2018
3f03785
Update mobile styles
Jan 2, 2019
d5cdf69
Reevert to PrismJS for code highlight
Jan 2, 2019
3b84718
Update packages
Jan 3, 2019
e259e99
Update some v2 styles
Jan 3, 2019
b357e76
Enable CodeClimate checks for guides
damianlegawiec Jan 14, 2019
8a1fd05
Merge pull request #9185 from spark-solutions/feature/guides-2-0
damianlegawiec Jan 14, 2019
6cd65f4
Add state_name_text method
przemosk Jan 15, 2019
c3cfeae
Fix displaying address#state_name
przemosk Jan 15, 2019
d691251
Merge pull request #9187 from spark-solutions/fix/proper_display_addr…
damianlegawiec Jan 15, 2019
09a3d56
Cache-Control: no-store
Jan 15, 2019
d0becd9
replace double quotes with single quotes
Jan 15, 2019
d0fdfe3
Merge pull request #9189 from luisenrike/cache
damianlegawiec Jan 15, 2019
b1f5830
Refactor shipment method
przemosk Jan 16, 2019
bad96fb
Add Country.by_iso method
przemosk Jan 16, 2019
2426789
Change address payload param, from: country_id to: country_iso
przemosk Jan 16, 2019
f4405e8
Delegate country_iso, iso_name
przemosk Jan 17, 2019
85cbcdf
Update Release Notes
przemosk Jan 17, 2019
e788c94
Update API V2 documentation
przemosk Jan 17, 2019
d37eb19
Merge pull request #9173 from spark-solutions/feature/api-v2-storefro…
damianlegawiec Jan 17, 2019
b9e21d2
Removed unused and undocumented `track_inventory` attribute from Stor…
damianlegawiec Jan 17, 2019
44e5564
Removed unused id attributes from Storefront serializers
damianlegawiec Jan 17, 2019
6ad8818
Added missing OptionType relationship in OptionValue Storefront seria…
damianlegawiec Jan 17, 2019
c372490
Merge pull request #9192 from spark-solutions/fix/storefront-option-v…
damianlegawiec Jan 17, 2019
bf12244
Improve 403/404 error descriptions in Storefront API v2 docs
damianlegawiec Jan 17, 2019
2c3ac6d
Merge pull request #9193 from spark-solutions/fix/api-docs-errors
damianlegawiec Jan 17, 2019
18018f0
Fixed undefined method `zero?' for nil:NilClass in wait_for_ajax helper
damianlegawiec Jan 17, 2019
ddea072
Change CreditCardSerializer namespace
przemosk Jan 17, 2019
09f69c9
Unify duplicate Storefront API v2 Account and User Serializer into one
damianlegawiec Jan 17, 2019
70661e6
Merge pull request #9195 from spark-solutions/fix/change_namespace_cr…
damianlegawiec Jan 17, 2019
6d1c5c2
Fixed release notes link broken after Guides 2.0 merge
damianlegawiec Jan 18, 2019
7104887
Merge pull request #9197 from spark-solutions/fix/api-v2-user-serializer
damianlegawiec Jan 18, 2019
1fffd6c
Merge pull request #9196 from spark-solutions/fix/wait-for-ajax-zero-nil
damianlegawiec Jan 18, 2019
e674e71
Update README.md
damianlegawiec Jan 18, 2019
f085733
Update README.md
damianlegawiec Jan 18, 2019
7511bbe
Bring back coffee-rails as dev dependency
damianlegawiec Jan 18, 2019
67e3d16
Create account/orders API endpoint
przemosk Jan 18, 2019
9aff4c1
Update API V2 documentation
przemosk Jan 18, 2019
8cfca03
Merge pull request #9194 from spark-solutions/feature/api-v2-storefro…
damianlegawiec Jan 18, 2019
c1f0905
We should require awesome_nested_set 3.1.4 as this version fully supp…
damianlegawiec Jan 19, 2019
fa06674
Fix randomly failling spec
przemosk Jan 18, 2019
a12b591
Merge pull request #9201 from spree/bump/awesome_nested_set-3-1-4
damianlegawiec Jan 21, 2019
c313e67
Merge pull request #9200 from spark-solutions/fix/randomly_failing_or…
damianlegawiec Jan 21, 2019
5e54093
Fix issues with decorators for CreditCard model
damianlegawiec Jan 21, 2019
37258e3
Merge pull request #9203 from spark-solutions/fix/credit-card-connect…
damianlegawiec Jan 21, 2019
0c4090a
Added `default` attribute to Credit Card serializer
damianlegawiec Jan 21, 2019
95a8044
Added `discounted_amount` for LineItem serializer
damianlegawiec Jan 21, 2019
3755b7c
Fix typo
przemosk Jan 21, 2019
1efbbbb
Add serializers: StoreCreditEvent, StoreCredit, StoreCreditType
przemosk Jan 21, 2019
012b51d
Add test for include=payments.source case
przemosk Jan 21, 2019
5eca6cc
Merge pull request #9202 from spark-solutions/fix/api-v2-serializers-…
damianlegawiec Jan 21, 2019
118f9fc
Bump version to 4.0.0.alpha
damianlegawiec Jan 21, 2019
edc4b7b
Removed unused launchy gem from dev dependencies
damianlegawiec Jan 21, 2019
f148664
Doorkeeper is dependency of Spree API so no need to have it here
damianlegawiec Jan 21, 2019
52d7367
Style tables
Jan 18, 2019
c1da616
Fix old warning helper
Jan 18, 2019
65b89c8
Fix images on user/reports
Jan 18, 2019
3bcdcf2
Merge pull request #9198 from spark-solutions/hotfix/guides-fixes
damianlegawiec Jan 21, 2019
cc620e5
Refactor, Cleanup, Index page sample data.
Jan 21, 2019
b39e24d
Remove sample Image component
Jan 21, 2019
ba06867
Merge remote-tracking branch 'origin/master' into hotfix/guides-fixes
Jan 21, 2019
6904aaa
Fix randomly failling spec
przemosk Jan 21, 2019
6bfeb78
Merge pull request #9204 from spark-solutions/fix/randomly_failling_n…
damianlegawiec Jan 22, 2019
154e952
Fixed random class detached errors in development by referencing clas…
damianlegawiec Jan 22, 2019
7db8747
Change CapybaraExt#spree_accept_alert method
kushniryb Jan 22, 2019
59a483a
Merge pull request #9207 from spark-solutions/fix/class-detached-errors
damianlegawiec Jan 22, 2019
349da11
Merge pull request #9208 from spree/enhancement/spree-accept-alert
damianlegawiec Jan 22, 2019
d4e05b8
Merge pull request #9205 from spark-solutions/fix/remove-unused-commo…
damianlegawiec Jan 23, 2019
626fa3d
Add seo data. Minor style fixes.
Jan 23, 2019
2d0b440
Fix font
Jan 23, 2019
86e5159
Do not require pathname
Jan 23, 2019
06f00f4
Add ability to hide sidebar link to content
Jan 23, 2019
01a579e
Add sort by order
Jan 23, 2019
d9ef518
Front page content test
Jan 23, 2019
c486205
Fix sorting UI
Jan 23, 2019
6231991
Merge pull request #9212 from spark-solutions/hotfix/guides-fixes
damianlegawiec Jan 24, 2019
119f85c
Introducing Spree Dependencies system
damianlegawiec Jan 21, 2019
094f24d
Updates Storefront v2 Countries endpoint to use Dependencies system
damianlegawiec Jan 22, 2019
56f617f
Updates Storefront v2 CreditCards endpoint to use Dependencies system
przemosk Jan 22, 2019
62f003e
Updates Storefront v2 Orders endpoint to use Dependencies system
przemosk Jan 22, 2019
32724a9
Updates Storefront v2 Account endpoint to use Dependencies system
przemosk Jan 22, 2019
1addb81
Updates Storefront v2 Products endpoint to use Dependencies system
przemosk Jan 22, 2019
b73a7a7
Updates Storefront v2 Taxons endpoint to use Dependencies system
przemosk Jan 22, 2019
53ecfc9
Refactor dependencies
przemosk Jan 22, 2019
0ccf7ee
Resolve confusion around RemoveItem vs RemoveLineItem service
damianlegawiec Jan 22, 2019
ea63885
Fixed OrdersController using new Dependencies system
damianlegawiec Jan 22, 2019
a7e916e
Move another part of the app to dependency system
damianlegawiec Jan 22, 2019
1a88e5c
Move part II of the app to dependency system
przemosk Jan 23, 2019
3365b7f
CR Remarks
przemosk Jan 23, 2019
d89b69a
Resolved CC conflicts
przemosk Jan 23, 2019
c728e7f
Move .constantize method
przemosk Jan 23, 2019
07b8dd2
We don't need to inherit from Preferences as we don't persist those v…
damianlegawiec Jan 25, 2019
2980b64
Make Ability class configurable via Spree Dependencies
damianlegawiec Jan 27, 2019
3795cf7
Improve dependencies codebase by introducing DependenciesHelper
damianlegawiec Jan 28, 2019
b783c69
Include Dependencies in Spree initializer
damianlegawiec Jan 28, 2019
83c0803
Add Dependencies documentation and update 3.7.0 Release notes
damianlegawiec Jan 28, 2019
ec8fd4e
Merge pull request #9210 from spark-solutions/feature/spree-dependencies
damianlegawiec Jan 28, 2019
4cc2c29
Update API v1 json syntax highlight theme (#9214)
Jan 29, 2019
20347aa
Refactors its to regular rspec syntax in payment_spec.rb
PSzyszkaSpark Jan 30, 2019
155037e
Refactors its to regular rspec syntax in support/concerns/default_pri…
PSzyszkaSpark Jan 30, 2019
46f1220
Removes gem rspec-its dependencie from common_spree_dependencies.rb
PSzyszkaSpark Jan 30, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
165 changes: 165 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
version: 2 # use CircleCI 2.0

defaults: &defaults
environment: &environment
CIRCLE_TEST_REPORTS: /tmp/test-results
CIRCLE_ARTIFACTS: /tmp/test-artifacts
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
BUNDLE_PATH: ~/spree/vendor/bundle
working_directory: ~/spree
docker:
- image: &image circleci/ruby:2.5-node-browsers

run_tests: &run_tests
<<: *defaults
parallelism: 4
steps:
- checkout
- restore_cache:
keys:
- spree-bundle-v3-{{ checksum ".ruby-version" }}-{{ .Branch }}
- spree-bundle-v3-{{ checksum ".ruby-version" }}
- run:
name: Ensure Bundle Install
command: |
bundle check --path=~/spree/vendor/bundle || bundle install
./build-ci.rb install
- run:
name: Run rspec in parallel
command: BUNDLE_GEMFILE=../Gemfile ./build-ci.rb test
- store_artifacts:
path: /tmp/test-artifacts
destination: test-artifacts
- store_artifacts:
path: /tmp/test-results
destination: raw-test-output
- store_test_results:
path: /tmp/test-results

jobs:
bundle_install:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- spree-bundle-v3-{{ checksum ".ruby-version" }}-{{ .Branch }}
- spree-bundle-v3-{{ checksum ".ruby-version" }}
- run:
name: Bundle Install
command: |
bundle check --path=~/spree/vendor/bundle || bundle install
./build-ci.rb install
- save_cache:
key: spree-bundle-v3-{{ checksum ".ruby-version" }}-{{ .Branch }}
paths:
- ~/spree/vendor/bundle

run_tests_postgres: &run_tests_postgres
<<: *run_tests
environment: &postgres_environment
<<: *environment
DB: postgres
DB_HOST: localhost
DB_USERNAME: postgres
docker:
- image: *image
- image: circleci/postgres:10-alpine
environment:
POSTGRES_USER: postgres

run_tests_postgres_paperclip:
<<: *run_tests_postgres
environment:
<<: *postgres_environment
SPREE_USE_PAPERCLIP: true

run_tests_mysql:
<<: *run_tests
environment:
<<: *environment
DB: mysql
DB_HOST: 127.0.0.1
DB_USERNAME: root
COVERAGE: true
COVERAGE_DIR: /tmp/workspace/simplecov
docker:
- image: *image
- image: circleci/mysql:8-ram
command: [--default-authentication-plugin=mysql_native_password]
steps:
- checkout
- restore_cache:
keys:
- spree-bundle-v3-{{ checksum ".ruby-version" }}-{{ .Branch }}
- spree-bundle-v3-{{ checksum ".ruby-version" }}
- run:
name: Ensure Bundle Install
command: |
bundle check --path=~/spree/vendor/bundle || bundle install
./build-ci.rb install
- run:
name: Run rspec in parallel
command: BUNDLE_GEMFILE=../Gemfile ./build-ci.rb test
- store_artifacts:
path: /tmp/test-artifacts
destination: test-artifacts
- store_artifacts:
path: /tmp/test-results
destination: raw-test-output
- store_test_results:
path: /tmp/test-results
- persist_to_workspace:
root: /tmp/workspace
paths:
- simplecov

send_test_coverage:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: /tmp/workspace
- run:
name: Download cc-test-reporter
command: |
mkdir -p tmp/
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./tmp/cc-test-reporter
chmod +x ./tmp/cc-test-reporter
- run:
name: Setup ENVs
command: |
export GIT_BRANCH="$CIRCLE_BRANCH"
export GIT_COMMIT_SHA="$CIRCLE_SHA1"
export GIT_COMMITTED_AT="$(date +%s)"
- run:
name: Format test coverage
command: |
./tmp/cc-test-reporter format-coverage -t simplecov -o tmp/codeclimate.api.json /tmp/workspace/simplecov/api/.resultset.json
./tmp/cc-test-reporter format-coverage -t simplecov -o tmp/codeclimate.backend.json /tmp/workspace/simplecov/backend/.resultset.json
./tmp/cc-test-reporter format-coverage -t simplecov -o tmp/codeclimate.core.json /tmp/workspace/simplecov/core/.resultset.json
./tmp/cc-test-reporter format-coverage -t simplecov -o tmp/codeclimate.frontend.json /tmp/workspace/simplecov/frontend/.resultset.json
- run:
name: Upload coverage results to Code Climate
command: |
./tmp/cc-test-reporter sum-coverage tmp/codeclimate.*.json -p 4 -o tmp/codeclimate.total.json
./tmp/cc-test-reporter upload-coverage -i tmp/codeclimate.total.json

workflows:
version: 2
main:
jobs:
- bundle_install
- run_tests_postgres:
requires:
- bundle_install
- run_tests_mysql:
requires:
- bundle_install
- run_tests_postgres_paperclip:
requires:
- run_tests_postgres
- send_test_coverage:
requires:
- run_tests_mysql
20 changes: 20 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "2"
plugins:
rubocop:
enabled: true
config:
file: .rubocop.yml
channel: "rubocop-0-60" # need to keep this value the same as rubocop version
# https://docs.codeclimate.com/v1.0/docs/rubocop#section-using-rubocop-s-newer-versions
eslint:
enabled: true
channel: "eslint-4" # need to keep this value the same as eslint version
# https://docs.codeclimate.com/v1.0/docs/eslint#section-eslint-versions
stylelint:
enabled: true
exclude_patterns:
- "**/bin/"
- "**/script/"
- "**/vendor/"
- "**/spec/"
- "public/"
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# http://EditorConfig.org
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
tab_width = 2

[**.rb]
max_line_length = 150

[**.js, **.coffee]
max_line_length = 150

[*.md]
trim_trailing_whitespace = false
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
**/vendor/**
**/dummy/**
**/sandbox/**
**/guides/output/**
*-min.js
*.min.js
jquery*.js
/guides/content/assets/javascripts/css_browser_selector_dev.js
/cmd/lib/spree_cmd/templates/**
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
extends: standard

globals:
Spree: true
analytics: true
ga: true
_: true
Select2: true
Handlebars: true
Raphael: true
SpreeAPI: true
SpreePaths: true

env:
browser: true
jquery: true
63 changes: 63 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
## Pull requests

We gladly accept pull requests to add documentation, fix bugs and, in some circumstances,
add new features to Spree.

Here's a quick guide:

1. Fork the repo

2. Clone the fork to your local machine

3. Run `bundle install` inside `spree` directory

4. Create a sandbox environment

```
rake sandbox
```

5. To run a sandbox application:

```
cd sandbox
rails s
```

6. Create new branch then make changes and add tests for your changes. Only
refactoring and documentation changes require no new tests. If you are adding
functionality or fixing a bug, we need tests!

7. Run the tests. [See instructions](https://github.com/spree/spree#running-tests)

8. Push to your fork and submit a pull request. If the changes will apply cleanly
to the master branch, you will only need to submit one pull request.

Don't do pull requests against `-stable` branches. Always target the master branch. Any bugfixes we'll backport to those branches.

At this point, you're waiting on us. We like to at least comment on, if not
accept, pull requests within three business days (and, typically, one business
day). We may suggest some changes or improvements or alternatives.

Some things that will increase the chance that your pull request is accepted,
taken straight from the Ruby on Rails guide:

* Use Rails idioms and helpers
* Include tests that fail without your code, and pass with it
* Update the documentation, the surrounding one, examples elsewhere, guides,
whatever is affected by your contribution

Syntax:

* Two spaces, no tabs.
* No trailing whitespace. Blank lines should not have any space.
* Use &&/|| over and/or.
* `MyClass.my_method(my_arg)` not `my_method( my_arg )` or `my_method my_arg`.
* `a = b` and not `a=b`.
* `a_method { |block| ... }` and not `a_method { | block | ... }`
* Follow the conventions you see used in the source already.
* -> symbol over lambda
* Ruby 1.9 hash syntax `{ key: value }` over Ruby 1.8 hash syntax `{ :key => value }`
* Alphabetize the class methods to keep them organized

And in case we didn't emphasize it enough: we love tests!
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

<!--- Provide a general summary of the issue in the Title above -->

## Context
<!--- Provide a more detailed introduction to the issue itself -->
<!--- How has this issue affected you? What were you trying to accomplish? -->

## Expected Behavior
<!--- Tell us what should happen -->

## Actual Behavior
<!--- Tell us what happens instead -->

## Possible Fix
<!--- Not obligatory, but suggest a fix or reason for the issue -->

## Steps to Reproduce
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this issue include code to reproduce, if relevant -->
1.
2.
3.
4.

## Your Environment
<!--- Include as many relevant details about the environment you experienced the issue in -->
* Version used:
* Gemfile and Gemfile.lock as text in a Gist:
* Any relevant stack traces ("Full trace" preferred):

<!--- Please remember to format code using triple backticks (`)
so that it is neatly formatted when the issue is posted. -->

<!--- In 99% of cases, this information is enough to determine the cause and
solution to the problem that is being described.

Any issue that is open for 14 days without actionable information or
activity will be marked as "stalled" and then closed. Stalled issues
can be re-opened if the information requested is provided. -->
Loading