-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement staging version of the app (closes #65) ; Fix asset compiliation issue (closes #64); Set website visit test with continuous integration (closes #34);
- Loading branch information
Showing
50 changed files
with
716 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Documentation here https://circleci.com/developer/orbs/orb/later/ruby-rails-setup | ||
# Following tutorial https://thoughtbot.com/blog/circleci-2-rails | ||
|
||
version: 2.1 | ||
orbs: | ||
ruby: circleci/[email protected] | ||
ruby-rails-setup: later/[email protected] | ||
|
||
jobs: | ||
build: | ||
working_directory: ~/compost-lyon | ||
docker: | ||
- image: circleci/ruby:3.0.1-buster-node-browsers-legacy | ||
environment: | ||
PGHOST: localhost | ||
PGUSER: CompostLyon | ||
RAILS_ENV: test | ||
RACK_ENV: test | ||
NODE_ENV: test | ||
- image: postgres:9.5 | ||
environment: | ||
POSTGRES_USER: CompostLyon | ||
POSTGRES_DB: CompostLyon_test | ||
POSTGRES_PASSWORD: <%= ENV['COMPOSTLYON_DATABASE_PASSWORD'] %> | ||
executor: ruby/default | ||
steps: | ||
- checkout | ||
- run: | ||
name: Configure Bundler | ||
command: | | ||
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV | ||
source $BASH_ENV | ||
gem install bundler | ||
# Bundle install dependencies | ||
- run: bundle install | ||
- run: yarn install | ||
- run: bin/rails webpacker:compile | ||
- save_cache: | ||
key: v1-bundle-{{ checksum "Gemfile.lock" }}-{{ checksum "yarn.lock" }} | ||
paths: | ||
- vendor/bundle | ||
- public/packs-test | ||
# Setup the database | ||
- run: bundle exec rake db:drop RAILS_ENV=test | ||
- run: bundle exec rake db:create RAILS_ENV=test | ||
- run: bundle exec rake db:schema:load RAILS_ENV=test | ||
|
||
# --- RSPEC | ||
|
||
- run: | ||
name: Running tests | ||
command: bundle exec rspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby-2.6.3 | ||
ruby-3.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
0f0b5fd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMPORTANT : Update rails version to
6.1.3.1
, and update ruby version to3.0.1