]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
ci: try autoclean
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 2 Apr 2020 14:20:33 +0000 (16:20 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 1 May 2020 08:04:36 +0000 (10:04 +0200)
.yarnclean [new file with mode: 0644]
circle.yml

diff --git a/.yarnclean b/.yarnclean
new file mode 100644 (file)
index 0000000..b591611
--- /dev/null
@@ -0,0 +1,45 @@
+# test directories
+__tests__
+test
+tests
+powered-test
+
+# asset directories
+docs
+doc
+website
+images
+assets
+
+# examples
+example
+examples
+
+# code coverage directories
+coverage
+.nyc_output
+
+# build scripts
+Makefile
+Gulpfile.js
+Gruntfile.js
+
+# configs
+appveyor.yml
+circle.yml
+codeship-services.yml
+codeship-steps.yml
+wercker.yml
+.tern-project
+.gitattributes
+.editorconfig
+.*ignore
+.eslintrc
+.jshintrc
+.flowconfig
+.documentup.json
+.yarn-metadata.json
+.travis.yml
+
+# misc
+*.md
index b6e68eb92e17c73c97cd6174c6d7ee52e6435549..6e5398d0c6730b495b3b868b7da5e93e0e5213fd 100644 (file)
@@ -16,14 +16,10 @@ jobs:
       - checkout
       - restore_cache:
           keys:
-            - v1-dependencies-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
-            - v1-dependencies-cache-{{ .Branch }}-
-            - v1-dependencies-cache-
+            - v2-dependencies-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
+            - v2-dependencies-cache-{{ .Branch }}-
+            - v2-dependencies-cache-
       - run: yarn install
-      - save_cache:
-          key: v1-dependencies-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
-          paths:
-            - node_modules
       - persist_to_workspace:
           root: ~/project
           paths:
@@ -34,10 +30,6 @@ jobs:
     steps:
       - attach_workspace:
           at: ~/project
-      - save_cache:
-          key: v1-dependencies-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
-          paths:
-            - node_modules
 
   build-e2e:
     <<: *defaults
@@ -56,8 +48,14 @@ jobs:
       - attach_workspace:
           at: ~/project
       - run: yarn test:unit  --maxWorkers=2
+      - run: yarn run codecov
       - store_artifacts:
           path: coverage
+      # Save cache after unit test is done. At this point e2e is still running
+      - save_cache:
+          key: v2-dependencies-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
+          paths:
+            - node_modules
 
   test-e2e:
     <<: *defaults
@@ -77,15 +75,6 @@ jobs:
       - run: yarn build:dts
       - run: yarn run test:tsd
 
-  coverage:
-    <<: *defaults
-    steps:
-      - attach_workspace:
-          at: ~/project
-      - run:
-          name: Send code coverage
-          command: yarn run codecov
-
 workflows:
   version: 2
   install-and-parallel-test:
@@ -103,9 +92,6 @@ workflows:
       - test-e2e:
           requires:
             - build-e2e
-      - coverage:
-          requires:
-            - test-unit
       - save-cache:
           requires:
-            - coverage
+            - test-unit