This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #805 from omu/develop
Merge develop into master
- Loading branch information
Showing
381 changed files
with
6,219 additions
and
3,775 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
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,40 @@ | ||
linters: | ||
Rubocop: | ||
enabled: true | ||
rubocop_config: | ||
inherit_from: | ||
- .rubocop.yml | ||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
Layout/InitialIndentation: | ||
Enabled: false | ||
Layout/TrailingBlankLines: | ||
Enabled: false | ||
Naming/FileName: | ||
Enabled: false | ||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
Metrics/LineLength: | ||
Enabled: false | ||
Lint/UselessAssignment: | ||
Enabled: false | ||
Rails/OutputSafety: | ||
Enabled: false | ||
SpaceAroundErbTag: | ||
enabled: true | ||
FinalNewline: | ||
enabled: true | ||
ErbSafety: | ||
enabled: true | ||
RightTrim: | ||
enabled: false | ||
SelfClosingTag: | ||
enabled: true | ||
AllowedScriptType: | ||
enabled: true | ||
allowed_types: | ||
- 'application/json' | ||
- 'text/javascript' | ||
- 'text/html' | ||
allow_blank: false | ||
disallow_inline_scripts: false |
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,3 +1,3 @@ | ||
{ | ||
"extends": "standard" | ||
"extends": "standard" | ||
} |
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
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
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,2 @@ | ||
rubocop: | ||
config_file: .rubocop.yml |
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,25 @@ | ||
{ | ||
"spec-char-escape": false, | ||
"attr-value-double-quotes": false, | ||
"doctype-first": false, | ||
"id-class-value": false, | ||
"title-require": false, | ||
"head-script-disabled": false, | ||
"tagname-lowercase": true, | ||
"attr-lowercase": true, | ||
"attr-value-not-empty": false, | ||
"attr-no-duplication": true, | ||
"tag-pair": true, | ||
"tag-self-close": false, | ||
"id-unique": true, | ||
"src-not-empty": true, | ||
"alt-require": true, | ||
"doctype-html5": true, | ||
"style-disabled": false, | ||
"inline-style-disabled": false, | ||
"inline-script-disabled": false, | ||
"space-tab-mixed-disabled": "space", | ||
"id-class-ad-disabled": false, | ||
"href-abs-or-rel": false, | ||
"attr-unsafe-chars": true | ||
} |
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
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 @@ | ||
2.6.0 | ||
2.6.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
language: minimal | ||
|
||
cache: | ||
directories: | ||
- "$HOME/bundle" | ||
- "$HOME/.bundle_config" | ||
- "$HOME/node_modules" | ||
|
||
install: | ||
- docker-compose build test | ||
- docker-compose run test bin/plugdo bundle install -j4 --path /app/vendor/bundle --without development | ||
- docker-compose run test yarn install | ||
- docker-compose run test bin/rails db:create db:structure:load | ||
|
||
before_script: | ||
- openssl aes-256-cbc -K $encrypted_3f8c4ca1dcec_key -iv $encrypted_3f8c4ca1dcec_iv -in config/deploy_key.enc -out config/deploy_key -d | ||
- chmod 600 config/deploy_key | ||
- eval "$(ssh-agent -s)" && ssh-add config/deploy_key | ||
- echo -e "Host app.omu.sh\n\tStrictHostKeyChecking no\n" >>~/.ssh/config | ||
|
||
jobs: | ||
include: | ||
- stage: test | ||
# first job at this stage | ||
name: "Quality Tests" | ||
before_script: skip | ||
script: docker-compose run test bundle exec rake quality:all | ||
|
||
# second job at this stage | ||
- name: "Security and Database Tests" | ||
before_script: skip | ||
script: docker-compose run test bundle exec rake security:all database:all | ||
|
||
# third job at this stage | ||
- name: "Integration Tests" | ||
before_script: skip | ||
script: docker-compose run test bundle exec rails test:system test | ||
|
||
- stage: deploy | ||
# first job at this stage | ||
name: "Deploy to dokku#beta" | ||
if: branch = develop AND type = push AND fork = false | ||
cache: skip | ||
install: skip | ||
script: git remote add beta [email protected]:nokul-develop && git push beta develop:master | ||
|
||
# second job at this stage | ||
- name: "Deploy to dokku#production" | ||
if: branch = master AND type = push AND fork = false | ||
cache: skip | ||
install: skip | ||
script: git remote add production [email protected]:nokul && git push production master | ||
|
||
notifications: | ||
email: false | ||
slack: | ||
on_success: change | ||
on_failure: change | ||
rooms: | ||
- secure: ljbXmcdLA/wv+j3+RCE0qF/mZd/3PbHI0VOSBkeyJDXWcHHMduIyZlodzliuXL/8mfLbmcJ8MZT5tV9l0OGSgiFI/Ngz1fadsf+0Pim4MtREkp4yKRzfDbQqj8iQwzAAcIAxbIQhenVZtaadwBAM8Jawcjs0m2+iWXaiREU1IlRaK1NzGtkDx8gy5PnVgJhtWmhV7/l6a0Sg94shr53bchkuGwH/ugqgq9L+ec1gGKVpSOHhS0W5WjojMU+3K5/HCP/r9V2J2jYUjtzDSbEDFd18rH0qJjNq1hoaVeaW1uJzidSH7f7B6xXxJfUt4e2CiY+2CkR5LUbFx5V+6fNscEAA9u+zGh6Rn9rxciWkFfzKck6Eomoq5G+d+q/ItVagAMSIUELYCOup2+H/KtRNFTBWBqwECsvXZn7WwaZOdMXDfiTnI9eSWxJqaiwFMtC1A+bnKM7DX2qoZoGCNJAzzQ93EuXdxA1w1oYVs7lfh70qLx5OraXtcTUtfrv4tzms35S9JNNnEQyWN7neuPCS0Yh4QIFf4NX7aaYbwFD66uS25Iq2ochJ4oicFd8s+DxnaXc925GYXFVHk7wZWK/mFlGnZTuTbk4ElByqzRUN2sI5r7xYijv9cBcUM/1RqzXI3B/91Ft/kyCaYDrg3W1j79zLo+G5uIHU2/F1AQBIYlI= |
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
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.