-
Notifications
You must be signed in to change notification settings - Fork 174
/
dev.yml
49 lines (41 loc) · 1.13 KB
/
dev.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: identity-cache
up:
- ruby
- bundler
- memcached
- mysql
- custom:
name: create database identity_cache_test
met?: mysql -u root -h 127.0.0.1 -P 1037 -e "SHOW DATABASES;" | grep identity_cache_test
meet: bundle exec rake db:create
commands:
test:
syntax:
optional:
argument: file
optional: args...
desc: "Run tests"
run: |
if [[ $# -eq 0 ]]; then
bundle exec rake test
else
bundle exec ruby -I test "$@"
fi
test-all:
desc: "Run tests for all gemfiles (default, min_supported, latest_release, rails_edge)"
run: bundle exec rake test_all
style:
desc: "Run rubocop checks"
run: bundle exec rubocop "$@"
check:
desc: "Run tests and style checks"
run: bundle exec rake test && bundle exec rubocop
benchmark-cpu:
desc: "Run the identity cache CPU benchmark"
run: bundle exec rake benchmark:cpu
profile:
desc: "Profile IDC code"
run: bundle exec rake profile:run
update-serialization-format:
desc: "Update serialization format test fixture"
run: bundle exec rake update_serialization_format