Просмотр исходного кода

:gear: moving frontend build step to after testing completes

tags/0.0.1^2
j 3 лет назад
Родитель
Сommit
2ac0ec5a13
1 измененных файлов: 25 добавлений и 26 удалений
  1. 25
    26
      .drone.yml

+ 25
- 26
.drone.yml Просмотреть файл

@@ -23,15 +23,39 @@ volumes:
23 23
       host:
24 24
           path: /tmp/cache/drone/frontend/node_modules
25 25
 ---
26
+#################
27
+# Backend Tests #
28
+#################
29
+kind: pipeline
30
+type: docker
31
+name: backend_run_tests
32
+
33
+steps:
34
+    - name: test-backend
35
+      image: node
36
+      volumes:
37
+          - name: backend_node_cache
38
+            path: /drone/src/backend/node_modules
39
+      commands:
40
+          - pwd
41
+          - cd ./backend
42
+          - npm install
43
+          - npm test
44
+
45
+volumes:
46
+    - name: backend_node_cache
47
+      host:
48
+          path: /tmp/cache/drone/backend/node_modules
49
+---
26 50
 ##################
27 51
 # Frontend Build #
28 52
 ##################
29
-
30 53
 kind: pipeline
31 54
 type: docker
32 55
 name: frontend_run_build
33 56
 depends_on:
34 57
     - frontend_run_tests
58
+    - backend_run_tests
35 59
 trigger:
36 60
     status:
37 61
         - success
@@ -62,28 +86,3 @@ volumes:
62 86
     - name: frontend_build
63 87
       host:
64 88
           path: /tmp/cache/drone/frontend/build
65
----
66
-#################
67
-# Backend Tests #
68
-#################
69
-
70
-kind: pipeline
71
-type: docker
72
-name: backend_run_tests
73
-
74
-steps:
75
-    - name: test-backend
76
-      image: node
77
-      volumes:
78
-          - name: backend_node_cache
79
-            path: /drone/src/backend/node_modules
80
-      commands:
81
-          - pwd
82
-          - cd ./backend
83
-          - npm install
84
-          - npm test
85
-
86
-volumes:
87
-    - name: backend_node_cache
88
-      host:
89
-          path: /tmp/cache/drone/backend/node_modules

Загрузка…
Отмена
Сохранить