Skip to content

Commit 0ccfef4

Browse files
committed
πŸ§‘β€πŸ’» Support direnv
1 parent 66b23d2 commit 0ccfef4

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

β€Ž.envrcβ€Ž

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Run any command in this library's bin/ without the bin/ prefix!
2+
PATH_add bin
3+
4+
# Only add things to this file that should be shared with the team.
5+
6+
# **dotenv** (See end of file for .env.local integration)
7+
# .env would override anything in this file, if enabled.
8+
# .env is a DOCKER standard, and if we use it, it would be in deployed, or DOCKER, environments.
9+
# Override and customize anything below in your own .env.local
10+
# If you are using dotenv and not direnv,
11+
# copy the following `export` statements to your own .env file.
12+
13+
### General Ruby ###
14+
# Turn off Ruby Warnings about deprecated code
15+
# export RUBYOPT="-W0"
16+
17+
### External Testing Controls
18+
export K_SOUP_COV_DO=true # Means you want code coverage
19+
# Available formats are html, xml, rcov, lcov, json, tty
20+
export K_SOUP_COV_COMMAND_NAME="RSpec Coverage"
21+
export K_SOUP_COV_FORMATTERS="html,tty"
22+
export K_SOUP_COV_MIN_BRANCH=80 # Means you want to enforce X% branch coverage
23+
export K_SOUP_COV_MIN_LINE=91 # Means you want to enforce X% line coverage
24+
export K_SOUP_COV_MIN_HARD=true # Means you want the build to fail if the coverage thresholds are not met
25+
export K_SOUP_COV_MULTI_FORMATTERS=true
26+
export MAX_ROWS=1 # Setting for simplecov-console gem for tty output, limits to the worst N rows of bad coverage
27+
28+
# Internal Debugging Controls
29+
export DEBUG=false # do not allow byebug statements (override in .env.local)
30+
31+
# .env would override anything in this file, if `dotenv` is uncommented below.
32+
# .env is a DOCKER standard, and if we use it, it would be in deployed, or DOCKER, environments,
33+
# and that is why we generally want to leave it commented out.
34+
# dotenv
35+
36+
# .env.local will override anything in this file.
37+
dotenv_if_exists .env.local

0 commit comments

Comments
Β (0)