This repository was archived by the owner on Nov 15, 2021. It is now read-only.
File tree 3 files changed +80
-8
lines changed 3 files changed +80
-8
lines changed Original file line number Diff line number Diff line change
1
+ # Javascript Node CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-javascript/ for more details
4
+ #
5
+ version : 2
6
+
7
+ defaults : &defaults
8
+ working_directory : ~/repo
9
+ docker :
10
+ - image : circleci/node:latest
11
+
12
+ jobs :
13
+ init :
14
+ << : *defaults
15
+ steps :
16
+ - checkout
17
+ - run : apt-get install expect
18
+ # Download and cache dependencies
19
+ - restore_cache :
20
+ keys :
21
+ - v1-dependencies-\{{ checksum "package.json" }}
22
+ # fallback to using the latest cache if no exact match is found
23
+ - v1-dependencies-
24
+ - run :
25
+ name : install dependency
26
+ command : yarn
27
+ - save_cache :
28
+ paths :
29
+ - node_modules
30
+ key : v1-dependencies-\{{ checksum "package.json" }}
31
+
32
+ - run :
33
+ name : auto generate project using this template
34
+ command : chmod +x test.sh; ./test.sh
35
+ - persist_to_workspace :
36
+ root : ~/repo
37
+ paths :
38
+ - vue-authoring-demo
39
+
40
+ build :
41
+ << : *defaults
42
+ steps :
43
+ - attach_workspace :
44
+ at : ~/repo/vue-authoring-demo
45
+ - run : yarn build:component
46
+ - run : yarn build:storybook
47
+
48
+ smoke-test :
49
+ << : *defaults
50
+ steps :
51
+ - attach_workspace :
52
+ at : ~/repo/vue-authoring-demo
53
+ - run : yarn dev -- --smoke-test
54
+
55
+ workflows :
56
+ version : 2
57
+ smoke_test :
58
+ jobs :
59
+ - init
60
+ - build :
61
+ requires :
62
+ - init
63
+ - smoke-test :
64
+ requires :
65
+ - init
Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ module.exports = {
116
116
value : false ,
117
117
short : 'no'
118
118
}
119
- ]
119
+ ] ,
120
+ default : 'yarn'
120
121
}
121
122
} ,
122
123
filters : {
Original file line number Diff line number Diff line change 1
- set -e
1
+ #! /usr/bin/env expect
2
+ set timeout 360
2
3
3
- yes " " | ./node_modules/.bin/vue init . test
4
+ spawn ./node_modules/.bin/vue init . vue-authoring-demo
4
5
5
- cd test
6
- npm install
7
- npm run lint
8
- npm test
9
- npm run build
6
+ # This happens because of
7
+ # https://github.com/vuejs/vue-cli/issues/291
8
+ expect " Project name" { send " \n" }
9
+ expect " Project description" { send " \n" }
10
+ expect " Author" { send " \n" }
11
+ expect " Select which storybook-addon you want to add" { send " \n" }
12
+ expect " Add circleci for Continuos Build?" { send " \n" }
13
+ expect " Configure circleci for Continuos Deployment" { send " \n" }
14
+ expect " Sort story and scenario in alphabetical order?" { send " \n" }
15
+ expect " Should we run ` npm install` for you after the project has been created? (recommended)" { send " \n" }
You can’t perform that action at this time.
0 commit comments