File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,22 @@ steps:
24
24
exit 1
25
25
fi
26
26
27
+ - name : restore-cache
28
+ image : plugins/s3-cache
29
+ settings :
30
+ pull : true
31
+ restore : true
32
+ access_key :
33
+ from_secret : S3_CACHE_ACCESS_KEY
34
+ secret_key :
35
+ from_secret : S3_CACHE_SECRET_KEY
36
+
27
37
- name : unit-tests
28
38
image : wintercdo/code-dot-org:0.7
39
+ pull : always
29
40
volumes :
41
+ - name : rbenv
42
+ path : /home/circleci/.rbenv
30
43
- name : mysql
31
44
path : /var/lib/mysql
32
45
environment :
@@ -37,9 +50,28 @@ steps:
37
50
commands :
38
51
- pwd
39
52
- sudo chown -R circleci:circleci .
53
+ - # cache is restored to source directory, so we need to copy it into the right place
54
+ - cp -rn "$(pwd)/home/circleci/.rbenv" /home/circleci || true
40
55
- /entrypoint.sh docker/unit_tests.sh
41
56
57
+ - name : update-cache
58
+ image : plugins/s3-cache
59
+ volumes :
60
+ - name : rbenv
61
+ path : /home/circleci/.rbenv
62
+ settings :
63
+ pull : true
64
+ rebuild : true
65
+ access_key :
66
+ from_secret : S3_CACHE_ACCESS_KEY
67
+ secret_key :
68
+ from_secret : S3_CACHE_SECRET_KEY
69
+ mount :
70
+ - /home/circleci/.rbenv
71
+
42
72
volumes :
73
+ - name : rbenv
74
+ temp : {}
43
75
- name : mysql
44
76
temp : {}
45
77
@@ -109,6 +141,6 @@ trigger:
109
141
# - pull_request
110
142
---
111
143
kind : signature
112
- hmac : 41f0921ccaed873a43f2608c4cabddf3911828cfc8044955f4420bf9fbaa8b98
144
+ hmac : a37b3ff8767d1c25c2bd719f6372de50b2bfdef6c26cfb06075b5fcc05785a64
113
145
114
146
...
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ echo "Wrote secrets from env vars into locals.yml."
57
57
set -x
58
58
59
59
# name: rake install
60
- RAKE_VERBOSE=true mispipe " bundle exec rake install" " ts '[%Y-%m-%d %H:%M:%S]'"
60
+ RAKE_VERBOSE=true mispipe " bundle exec rake install --trace " " ts '[%Y-%m-%d %H:%M:%S]'"
61
61
62
62
# name: rake build
63
63
RAKE_VERBOSE=true mispipe " bundle exec rake build --trace" " ts '[%Y-%m-%d %H:%M:%S]'"
You can’t perform that action at this time.
0 commit comments