-
Notifications
You must be signed in to change notification settings - Fork 125
Expand file tree
/
Copy pathdevbox.json
More file actions
31 lines (31 loc) · 1.07 KB
/
Copy pathdevbox.json
File metadata and controls
31 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.2/.schema/devbox.schema.json",
"packages": {
"ruby": "3.2",
"bundler": "latest",
"jq": "latest"
},
"shell": {
"init_hook": [
"export PROJECT_ROOT=\"$(git rev-parse --show-toplevel 2>/dev/null || echo $DEVBOX_PROJECT_ROOT)\"",
"export GEM_HOME=\"$PROJECT_ROOT/.gem\"",
"export PATH=\"$GEM_HOME/bin:$PATH\"",
"if [ ! -f \"$PROJECT_ROOT/Gemfile.lock\" ] || [ \"$PROJECT_ROOT/Gemfile\" -nt \"$PROJECT_ROOT/Gemfile.lock\" ]; then echo 'Running bundle install...'; bundle install; fi"
],
"scripts": {
"ci:install": ["bundle install"],
"check": [
"devbox run lint",
"devbox run test"
],
"test": ["bundle exec rake spec"],
"lint": ["bundle exec rubocop"],
"build": [
"rm -f analytics-ruby-*.gem",
"gem build ./analytics-ruby.gemspec"
],
"install": ["devbox run build", "gem install analytics-ruby-*.gem"],
"clean": ["rm -f analytics-ruby-*.gem", "rm -rf .gem", "rm -rf coverage"]
}
}
}