about summary refs log tree commit diff
path: root/.circleci
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-07-30 20:23:11 +0200
committerThibG <thib@sitedethib.com>2018-07-30 22:25:22 +0200
commit9d09c7cc68bdbf5f073251b0ced06580f74a75a7 (patch)
tree60c658434525d66e832b5f8b7dd3e8948f51278c /.circleci
parent1bae4c4f831541ea0e8f09c5a04a07c5290debae (diff)
Use workspace instead of caching for built assets
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 95533f9a6..0567a3d33 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
@@ -128,11 +122,11 @@ jobs:
           name: Precompile assets
           command: ./bin/rails assets:precompile
           no_output_timeout: 40m
-      - 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