| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - | ||
| 2 | 1 | # Ignore rbenv files | |
| 3 | 2 | .ruby-version | |
| 4 | 3 | ||
@@ -25,7 +24,6 @@ public/videos/* | |||
| 25 | 24 | ||
| 26 | 25 | # Ignore branded content | |
| 27 | 26 | app/views/branded/* | |
| 28 | - app/assets | ||
| 29 | 27 | config/locales/static_pages/*.yml | |
| 30 | 28 | ||
| 31 | 29 | ||
@@ -55,7 +53,7 @@ config/branding.yml | |||
| 55 | 53 | ||
| 56 | 54 | # Ignore some of the initializers | |
| 57 | 55 | config/initializers/recaptcha.rb | |
| 58 | - config/initializers/devise.rb | ||
| 56 | + # config/initializers/devise.rb | ||
| 59 | 57 | config/initializers/wicked_pdf.rb | |
| 60 | 58 | config/initializers/fingerprint.rb | |
| 61 | 59 | ||
@@ -84,14 +82,23 @@ config/locale/*/app.edit.po | |||
| 84 | 82 | config/locale/*/app.po.time_stamp | |
| 85 | 83 | ||
| 86 | 84 | # Front-end related | |
| 87 | - lib/assets/node_modules | ||
| 88 | - lib/assets/npm-debug.log | ||
| 89 | - lib/assets/.eslintcache | ||
| 90 | 85 | !.keep | |
| 91 | 86 | .byebug_history | |
| 92 | 87 | lib/data_cleanup/rules/org/fix_blank_abbreviation.yml | |
| 93 | 88 | .rspec | |
| 94 | - node_modules | ||
| 89 | + | ||
| 90 | + yarn-error.log | ||
| 91 | + yarn-debug.log* | ||
| 92 | + | ||
| 93 | + .yarn-integrity | ||
| 95 | 94 | .env | |
| 96 | - public/packs | ||
| 95 | + package-lock.json | ||
| 96 | + node_modules | ||
| 97 | + /public/packs | ||
| 98 | + /public/packs-test | ||
| 99 | + | ||
| 97 | 100 | spec/examples.txt | |
| 101 | + .babelrc | ||
| 102 | + .eslintignore | ||
| 103 | + .eslintrc.json | ||
| 104 | + .postcssrc.yml | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,6 @@ addons: | |||
| 18 | 18 | chrome: stable | |
| 19 | 19 | apt: | |
| 20 | 20 | packages: | |
| 21 | - - nodejs | ||
| 22 | 21 | - wkhtmltopdf | |
| 23 | 22 | ||
| 24 | 23 | # artifacts: | |
@@ -42,12 +41,25 @@ env: | |||
| 42 | 41 | - DB_ADAPTER=postgresql | |
| 43 | 42 | - DB_ADAPTER=mysql2 | |
| 44 | 43 | ||
| 44 | + before_install: | ||
| 45 | + - nvm install 10.10.0 | ||
| 46 | + | ||
| 47 | + install: | ||
| 48 | + - bundle install --with development,ci --path=${BUNDLE_PATH:-vendor/bundle} | ||
| 49 | + - yarn install --ignore-optional | ||
| 50 | + | ||
| 51 | + # This is a temporary bug fix for Karma tests | ||
| 52 | + # See here: https://github.com/travis-ci/travis-ci/issues/9024 | ||
| 53 | + before_script: | ||
| 54 | + - "sudo chown root /opt/google/chrome/chrome-sandbox" | ||
| 55 | + - "sudo chmod 4755 /opt/google/chrome/chrome-sandbox" | ||
| 56 | + | ||
| 45 | 57 | # Main test script | |
| 46 | 58 | script: | |
| 47 | 59 | - export WICKED_PDF_PATH=./vendor/bundle/ruby/2.4.0/bin/wkhtmltopdf | |
| 48 | 60 | # Copy over config files needed for setup, and create DB | |
| 49 | 61 | - bin/setup | |
| 50 | - # Precompile the assets | ||
| 62 | + - bundle exec rake webpacker:compile | ||
| 51 | 63 | - bundle exec rake assets:precompile | |
| 52 | 64 | # Default test stage: Run all specs, listing the 10 slowest. | |
| 53 | 65 | - bundle exec rspec spec --profile=10 | |
@@ -70,6 +82,10 @@ jobs: | |||
| 70 | 82 | name: "Bundle audit" | |
| 71 | 83 | script: bundle exec bundle-audit check --update | |
| 72 | 84 | ||
| 85 | + - stage: test | ||
| 86 | + name: "Karma JS tests" | ||
| 87 | + script: yarn run eslint --ext .js --ext .jsx app/assets/javascripts/**/*.js | ||
| 88 | + | ||
| 73 | 89 | - stage: hygiene | |
| 74 | 90 | name: "Check seeds are valid" | |
| 75 | 91 | script: bin/setup && bundle exec rake db:seed | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,8 @@ ruby '>= 2.4.0' | |||
| 7 | 7 | # Full-stack web application framework. (http://www.rubyonrails.org) | |
| 8 | 8 | gem 'rails', '~> 4.2.10' | |
| 9 | 9 | ||
| 10 | + gem "rake" | ||
| 11 | + | ||
| 10 | 12 | # Tools for creating, working with, and running Rails applications. (http://www.rubyonrails.org) | |
| 11 | 13 | gem 'railties' | |
| 12 | 14 | ||
@@ -92,11 +94,29 @@ gem 'recaptcha' | |||
| 92 | 94 | # Ideal gem for handling attachments in Rails, Sinatra and Rack applications. (http://github.com/markevans/dragonfly) | |
| 93 | 95 | gem 'dragonfly' | |
| 94 | 96 | ||
| 97 | + gem 'bootstrap-sass', '~> 3.3.7' | ||
| 98 | + | ||
| 99 | + # This is required for Font-Awesome, but not used as the main sass compiler | ||
| 100 | + | ||
| 101 | + gem "sass-rails", require: false | ||
| 102 | + | ||
| 103 | + gem "sassc-rails" | ||
| 104 | + | ||
| 105 | + gem 'font-awesome-sass', '~> 4.2.0' | ||
| 106 | + | ||
| 107 | + gem 'webpacker', '~> 3.5' | ||
| 108 | + | ||
| 109 | + gem "autoprefixer-rails" | ||
| 110 | + | ||
| 111 | + gem 'mini_racer' | ||
| 112 | + | ||
| 95 | 113 | # ------------------------------------------------ | |
| 96 | 114 | # EXPORTING | |
| 97 | 115 | # Provides binaries for WKHTMLTOPDF project in an easily accessible package. | |
| 98 | 116 | gem 'wkhtmltopdf-binary' | |
| 99 | 117 | ||
| 118 | + gem 'puma' | ||
| 119 | + | ||
| 100 | 120 | # PDF generator (from HTML) gem for Ruby on Rails (https://github.com/mileszs/wicked_pdf) | |
| 101 | 121 | gem 'wicked_pdf' | |
| 102 | 122 | ||
@@ -122,6 +142,8 @@ gem 'gettext', require: false, group: :development | |||
| 122 | 142 | # A pagination engine plugin for Rails 4+ and other modern frameworks (https://github.com/kaminari/kaminari) | |
| 123 | 143 | gem 'kaminari' | |
| 124 | 144 | ||
| 145 | + gem "rails_12factor" | ||
| 146 | + | ||
| 125 | 147 | # ------------------------------------------------ | |
| 126 | 148 | # ENVIRONMENT SPECIFIC DEPENDENCIES | |
| 127 | 149 | group :development, :test do | |
@@ -131,10 +153,6 @@ group :development, :test do | |||
| 131 | 153 | # RSpec for Rails (https://github.com/rspec/rspec-rails) | |
| 132 | 154 | gem "rspec-rails" | |
| 133 | 155 | ||
| 134 | - # factory_bot_rails provides integration between factory_bot and rails 3 or newer (http://github.com/thoughtbot/factory_bot_rails) | ||
| 135 | - # rspec-collection_matchers-1.1.3 (https://github.com/rspec/rspec-collection_matchers) | ||
| 136 | - gem "rspec-collection_matchers" | ||
| 137 | - | ||
| 138 | 156 | # factory_bot_rails provides integration between factory_bot and rails 3 or newer (http://github.com/thoughtbot/factory_bot_rails) | |
| 139 | 157 | gem "factory_bot_rails" | |
| 140 | 158 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments