Miles Gould
f1d3a70bbd
Install git-guilt linter
2017-03-03 14:25:03 +13:00
Brenda Wallace
66fec1f4a3
Adding yaml linter
2017-03-02 21:32:53 +13:00
Brenda Wallace
affbe2a460
renamed ruby files to .rb
...
so rubocop cop catches these in her net
2017-03-02 21:13:35 +13:00
Brenda Wallace
cc40bb35fb
bundle exec on the contributor check
2017-03-02 21:04:21 +13:00
Brenda Wallace
0d2fb25881
Removed gemfile check. overcommit can do this
2017-03-02 20:59:45 +13:00
Brenda Wallace
29f050d19f
Removed check_conflicts. overcommit does this
2017-03-02 20:48:21 +13:00
Brenda Wallace
2238374080
Moved overcommit call into check_static
2017-03-02 20:47:18 +13:00
Brenda Wallace
cad8ecad8f
Added bundle-audit
2017-03-02 20:40:25 +13:00
Brenda Wallace
dbb74c5675
Moved phantom verion output to script
2017-03-02 20:10:47 +13:00
Brenda Wallace
6422070f04
Moved linter installs to own script
2017-03-02 20:06:47 +13:00
Brenda Wallace
5ec70d1438
Moved merge conflict checking to overcommit
2017-03-02 19:54:18 +13:00
Brenda Wallace
7e06bf4fd0
Wrap shell script variables in ""
2017-03-01 20:48:15 +00:00
Brenda Wallace
dd710860de
Run the linters etc from overcommit
2017-03-01 20:48:15 +00:00
Miles Gould
9d6ac9fd8b
LINT ALL THE HAML!
...
.
.
.
lint *all* the HAML?
2017-02-16 13:30:20 +00:00
Miles Gould
d301f2f2ae
Add static check for files with merge conflicts
...
Fixes #1146
2017-02-07 15:03:52 +00:00
Miles Gould
3fed962dcc
Add script/check_static to run all static checks
...
...and invoke it from .travis.yml
2017-02-07 14:27:14 +00:00
Brenda Wallace
723ebff923
Spacing fixes
2016-11-26 12:13:17 +13:00
Brenda Wallace
2872a1c29d
Wrapped all long lines.
...
reduced rubocop's line length limit to 120
2016-11-17 22:02:18 +13:00
Brenda Wallace
6bd9bd98d9
Removed extra blank lines, & added a end of file
2016-11-16 12:52:48 +13:00
Brenda Wallace
eecd54c5ea
Use single quotes, as code climate suggests
2016-11-13 11:12:24 +13:00
Brenda Wallace
e1f0b649f5
if! -> unless, as code climate suggests
2016-11-13 11:10:45 +13:00
Brenda Wallace
9605ec6109
Pass args to system() to be escaped
2016-11-13 11:07:57 +13:00
Brenda Wallace
b2977d6806
Search contributors file, case insensitive.
2016-11-13 11:05:43 +13:00
Mackenzie Morgan
a8171bb739
has_key? -> key?
2016-07-08 16:58:22 +09:30
Daniel O'Connor
f2d8349a88
#1012 Tweak script to avoid errors after merge
2016-06-22 10:46:26 +09:30
Miles Gould
8b426da149
Check PR author is in CONTRIBUTORS.md under Travis
...
Results of testing this locally (the exit value of the last command is
in my prompt):
```
0 $ TRAVIS=true TRAVIS_REPO_SLUG=growstuff/growstuff
TRAVIS_PULL_REQUEST=1007 script/check_contributors_md
Checking to see if you're in CONTRIBUTORS.md...
Thanks for your contribution, ctlewitt!
Please add your name and GitHub handle to the file CONTRIBUTORS.md,
commit it, and update your PR.
1 $ TRAVIS=true TRAVIS_REPO_SLUG=growstuff/growstuff
TRAVIS_PULL_REQUEST=1008 script/check_contributors_md
Checking to see if you're in CONTRIBUTORS.md...
- Miles Gould / [pozorvlak](https://github.com/pozorvlak )
0 $ script/check_contributors_md
Checking to see if you're in CONTRIBUTORS.md...
- Miles Gould / [pozorvlak](https://github.com/pozorvlak )
0 $
```
2016-06-21 16:37:26 +01:00
Miles Gould
e33803343a
Check for "forgot to commit Gemfile.lock" in CI
...
Quick-and-dirty script to catch an error we've missed a couple of times
in code review, but which is not (AFAICT) covered by any of our existing
checkers. Inspired by the following posts:
- https://zachholman.com/posts/how-github-writes-blog-posts/
- https://zachholman.com/talk/move-fast-break-nothing/
2016-06-21 13:32:11 +01:00
Cesy Avon
23a6722ddb
Precompile css and js with sass
2016-05-22 16:34:36 +00:00
Daniel O'Connor
4b4e0cf69a
$ rubocop --only HashSyntax --auto-correct
...
483 files inspected, 2018 offenses detected, 2018 offenses corrected
2016-05-19 15:53:11 -04:00
Miles Gould
28ac7ff886
Remove one-off tasks that were run for Release 8.
...
The ElasticSearch index task was run, but failed because we didn't have
an ElasticSearch instance to run it against.
2015-07-09 01:06:39 +01:00
Mackenzie Morgan
7ca89908cd
merge from upstream
2015-02-01 22:00:52 -05:00
Shiho Takagi
2aa30475e9
merge
2015-02-01 00:14:52 +11:00
Mackenzie Morgan
3f393b0937
moving si_weight population to one-off
2015-01-30 23:17:42 -05:00
Mackenzie Morgan
0bdab0d9fc
basics of harvest standardized weights
2015-01-28 23:00:16 -05:00
Shiho Takagi
04d61bd040
deployment sript
2015-01-25 16:18:26 +11:00
Miles Gould
57552455e3
Get Heroku app from .travis.yml
2015-01-21 09:13:07 +00:00
Miles Gould
531a0bd9ea
Roll our own heroku maintenance:(on|off) script
...
This allows us to use maintenance mode without installing the full
Heroku toolbelt, which we can't do on the (much faster!) container-based
infrastructure.
We add a (temporary) deployment to my sandbox from the travis_containers
branch: muckingabout with one branch for both container-based and
VM-based approaches was starting to get confusing.
2015-01-21 00:36:47 +00:00
Miles Gould
4b90f6385b
Merge branch 'dev' into load_alternate_names
...
Conflicts:
Gemfile.lock
script/deploy-tasks.sh
2014-12-01 10:47:10 +00:00
Skud
6f3e430840
Add deploy tasks for new crops
2014-12-01 21:23:15 +11:00
Miles Gould
36be5e9533
Hardcode alternate-name CSV file path.
2014-10-19 21:54:46 +01:00
Miles Gould
0aea1721d8
Add altname data and include load in deploy-tasks.
2014-10-19 17:24:18 +01:00
Shiho Takagi
cf07ecfa4a
improved test spec, crop page and added rake task
2014-10-05 23:16:46 +11:00
Skud
e002cb2d35
added deploy task to remove unused photos
2014-10-02 17:48:19 +10:00
Skud
25abcdc923
Upload tomato varieties to crop database
2014-09-28 13:50:55 +10:00
Mackenzie Morgan
f3c3d73ef1
updating test for harvest units to list the valid units and adding a task to correct misspelled pint harvests already in the database
2014-08-10 19:49:10 -04:00
Skud
8223025d35
Set default plantings_count to 0 not nil
2014-07-18 18:06:43 +10:00
Miles Gould
f723fea4e2
Load plant parts in db:seed and rake task.
2013-10-30 23:49:34 +00:00
Skud
b63c854b16
Set default garden locations
...
Also created a handy rake task to depopulate Null Island (i.e. fix up
anyone's lat/long that's somehow ended up as 0,0).
2013-10-25 23:45:48 +11:00
Skud
c64499881d
Removed deploy script reminders, as no longer necessary
2013-09-12 22:05:35 +10:00
Skud
8a203deb19
Use experimental user-env-compile heroku addon
...
It seems that heroku generally denies us access to ENV['...'] during asset
compilation. They have reasonably good reasons for this, and yet I don't
know how else we're meant to get at our API keys (other than hardcoding
them into our config files, which we don't want to do).
So, to work around this, I'm recommending the use of the (experimental,
subject to removal/change, sigh) user-env-compile heroku addon. This
lets us use ENV during asset compilation.
For more info see
https://devcenter.heroku.com/articles/labs-user-env-compile
2013-09-11 17:32:31 +10:00