about summary refs log tree commit diff
path: root/.circleci
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-07-30 22:22:55 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-07-30 22:22:55 +0200
commitd425d30804aeed41010452519b275bd007547377 (patch)
treec2addeb54c1d912fbc854b9c129eec7ed8ee4bb2 /.circleci
parent07b799468d34c7fa64dbbee65c7979f560a3e8c1 (diff)
Use workspace instead of caching for built assets (#8103)
Tests cannot run without built assets, and we want
exactly the matching assets. This is not a cache.
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml14
1 files changed, 4 insertions, 10 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 2a1c84253..ac8dfc334 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -81,12 +81,6 @@ aliases:
         - run: ruby -e 'puts RUBY_VERSION' | tee /tmp/.ruby-version
         - *restore_ruby_dependencies
 
-        - restore_cache:
-            keys:
-              - precompiled-assets-{{ .Branch }}-{{ .Revision }}
-              - precompiled-assets-{{ .Branch }}-
-              - precompiled-assets-
-
         - run:
             name: Prepare Tests
             command: ./bin/rails parallel:create parallel:load_schema parallel:prepare
@@ -125,11 +119,11 @@ jobs:
       - run: ruby -e 'puts RUBY_VERSION' | tee /tmp/.ruby-version
       - *restore_ruby_dependencies
       - run: ./bin/rails assets:precompile
-      - save_cache:
-          key: precompiled-assets-{{ .Branch }}-{{ .Revision }}
+      - persist_to_workspace:
+          root: ~/projects/
           paths:
-            - ./public/assets
-            - ./public/packs-test/
+              - ./mastodon/public/assets
+              - ./mastodon/public/packs-test/
 
   test-ruby2.5:
     <<: *defaults