Commit Graph
32 Commits
Author SHA1 Message Date
evazion 440bbbb288 Update nokogiri gem.
Fix gem version conflicts described in 20abd8a5f. Nokogiri couldn't be
upgraded past 1.10.9 because 1.11.0 causes a build failure in Nokogumbo
2.0.2, but we couldn't stay on 1.10.9 either because it has a hard
requirement on Ruby <2.7 and we require Ruby >=2.7. This made `bundle
update` fail with a Gemfile conflict.

The fix is to disable libxml2 support when building Nokogumbo. Nokogumbo
wants to use the same version of libxml2 as Nokogiri, but Nokogiri
1.11.0 changed how it reports which version of libxml2 it's using, which
causes Nokogumbo's build to fail. Disabling libxml2 may reduce
performance of Nokogumbo ([1]).

While we're at it, we also make Nokogiri use the system version of
libxml2 instead of its own bundled version. Nokogiri really wants
us to use its own patched version of libxml2 instead of the system
version, but the patches it applies look relatively minor and don't seem
relevant to us ([2]). Using the system version reduces build time during CI.

This adds libxml2 and libxslt as OS-level dependencies of Danbooru. You
may need to do `sudo apt-get install libxml2-dev libxslt-dev` to install
these libraries after this commit.

[1]: https://github.com/rubys/nokogumbo#flavors-of-nokogumbo
[2]: https://github.com/sparklemotion/nokogiri/tree/master/patches/libxml2
2020-06-19 02:27:15 -05:00
evazion 025e09ff7f tests: upload test coverage reports to code climate.
Downgrade simplecov to 0.17 because 0.18 is incompatible with code
climate. Ref: github.com codeclimate/test-reporter/issues/413
2020-06-11 15:35:15 -05:00
evazion a829fbfb8d tests: fix test coverage reporting for parallel testing.
* Fix simplecov clobbering test coverage reports when using parallel tests.
* Generate coverage reports by default (remove $SIMPLECOV flag).
* Store coverage reports in tmp/coverage/ instead of coverage/.
* Enable branch coverage.

ref: github.com /colszowka/simplecov/issues/718#issuecomment-538201587
2020-06-11 02:16:20 -05:00
evazion 6d78d22571 Update docker test configuration. 2020-06-07 17:14:41 -05:00
evazion 5bde45f90d Update .gitignore. 2020-01-14 11:24:30 -06:00
evazion 060bf1a64b Update .gitignore. 2019-11-19 00:16:40 -06:00
Albert Yi 6fa0ae2cf1 Migrate assets to use Webpacker 2018-07-27 15:24:05 -07:00
Albert Yi f1ca252b3c wip 2018-05-11 10:52:03 -07:00
Albert Yi b219992b7d add async processing for top tagger 2018-04-03 16:00:36 -07:00
r888888888 12dc2a4c9b adjust scratch gitignore 2017-06-12 15:25:07 -07:00
Type-kun b3de24f282 Add public/assets to .gitignore
It gets populated if rails server is run locally without cap deploy
2017-06-09 19:26:19 +05:00
evazion 3eb525ad01 dotenv: add gem. 2017-01-23 16:38:14 -06:00
Albert Yi 0ea7d78584 remove usage of vcr cassettes; delete unused fixtures; fix some broken unit tests 2016-12-28 15:47:28 -08:00
Albert Yi ee4ebce4d7 support pool version archive 2016-12-21 11:43:46 -08:00
Albert Yi 4f2988c809 ignore config/newrelic.yml 2016-12-02 15:09:06 -08:00
r888888888 afa0dcae20 potential fix for alias/implication status bug 2016-10-18 00:25:55 -07:00
r888888888 3ed3febe06 update install scripts 2014-06-22 20:25:32 -07:00
r888888888 09c9bd0367 update gitignore 2014-06-02 13:17:37 -07:00
r888888888 36dab73998 iqdb fixes 2014-03-24 15:12:05 -07:00
r888888888 16712b7d56 implement iqdb wrapper 2014-03-24 13:22:03 -07:00
albert 40745a2e6e added new landing page 2011-10-28 19:21:44 -04:00
randuin 31863738c1 Added vim .swp files to the gitignore and
also added pry to the development group for the Gemfile
2011-09-02 18:19:15 -07:00
albert 1f5c454241 ignore database.yml, local config 2011-03-30 15:15:50 -04:00
albert 8eb3451fb4 added user feedback functional test 2011-02-01 18:08:01 -05:00
albert cd451109e8 stubbed in pool controller test 2011-01-20 18:30:36 -05:00
albert d84818366b remove coverage 2011-01-20 17:41:54 -05:00
albert a9da0f1059 add jrails, work on comments 2010-10-21 18:56:00 -04:00
albert f051e04550 sync 2010-10-08 18:42:26 -04:00
albert ad39553aac updated tests, switched to rails 3.0.0rc2 2010-08-26 14:36:02 -04:00
albert ca8be10ab9 more work on post uploads 2010-03-12 19:27:54 -05:00
albert bed94a4e30 updated tag unit tests 2010-02-11 14:59:58 -05:00
albert 07b0e213f3 added gitignore 2010-02-08 01:44:37 -05:00