This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
forked from codeforamerica/ohana-api
-
Notifications
You must be signed in to change notification settings - Fork 0
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 codeforamerica#12 from appropriate/update-from-cfa…
…-20170308 Update from CfA upstream
- Loading branch information
Showing
113 changed files
with
1,106 additions
and
696 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,2 @@ | ||
#!/bin/sh | ||
bundle exec rspec --fail-fast |
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,36 @@ | ||
engines: | ||
brakeman: | ||
enabled: true | ||
bundler-audit: | ||
enabled: true | ||
csslint: | ||
enabled: true | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- ruby | ||
# mass_threshold: 30 | ||
- javascript | ||
exclude_paths: | ||
- 'spec/**/*' | ||
- 'db/migrate/*' | ||
- 'db/schema.rb' | ||
eslint: | ||
enabled: true | ||
fixme: | ||
enabled: true | ||
reek: | ||
enabled: true | ||
exclude_paths: | ||
- 'db/migrate/*' | ||
rubocop: | ||
enabled: true | ||
scss-lint: | ||
enabled: true | ||
|
||
ratings: | ||
paths: | ||
- app/** | ||
- lib/** | ||
- '**.rb' |
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,5 @@ | ||
Dockerfile | ||
tmp | ||
log | ||
*.md | ||
.git* |
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,13 @@ | ||
IrresponsibleModule: | ||
enabled: false | ||
'spec': | ||
DataClump: | ||
enabled: false | ||
LongParameterList: | ||
enabled: false | ||
TooManyStatements: | ||
enabled: false | ||
UtilityFunction: | ||
enabled: false | ||
exclude_paths: | ||
- db/migrate |
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.2.3 | ||
2.3.3 |
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,8 @@ | ||
linters: | ||
Comment: | ||
exclude: | ||
- 'app/assets/stylesheets/application.css.scss' | ||
- 'app/assets/stylesheets/admin/application.css.scss' | ||
PlaceholderInExtend: | ||
exclude: | ||
- 'app/assets/stylesheets/framework_and_overrides.css.scss' |
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,25 @@ | ||
# Use the rails image because it properly sets up Node.js and Postgres | ||
FROM rails:4.2.6 | ||
|
||
# PhantomJS is required for running tests | ||
ENV PHANTOMJS_SHA256 86dd9a4bf4aee45f1a84c9f61cf1947c1d6dce9b9e8d2a907105da7852460d2f | ||
|
||
RUN mkdir /usr/local/phantomjs \ | ||
&& curl -o phantomjs.tar.bz2 -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 \ | ||
&& echo "$PHANTOMJS_SHA256 *phantomjs.tar.bz2" | sha256sum -c - \ | ||
&& tar -xjf phantomjs.tar.bz2 -C /usr/local/phantomjs --strip-components=1 \ | ||
&& rm phantomjs.tar.bz2 | ||
|
||
RUN ln -s ../phantomjs/bin/phantomjs /usr/local/bin/ | ||
|
||
WORKDIR /ohana-api | ||
|
||
COPY Gemfile /ohana-api | ||
COPY Gemfile.lock /ohana-api | ||
|
||
RUN bundle install --jobs 20 --retry 5 | ||
|
||
COPY . /ohana-api | ||
|
||
EXPOSE 8080 | ||
CMD ["rails", "server", "-b", "0.0.0.0", "-p", "8080"] |
Oops, something went wrong.