Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

Commit 1ebc31b

Browse files
committed
Add CI for smoke-test
- Temporary fix #10
1 parent bf75c1e commit 1ebc31b

File tree

3 files changed

+67
-8
lines changed

3 files changed

+67
-8
lines changed

.circleci/config.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
# Download and cache dependencies
18+
- restore_cache:
19+
keys:
20+
- v1-dependencies-\{{ checksum "package.json" }}
21+
# fallback to using the latest cache if no exact match is found
22+
- v1-dependencies-
23+
- run:
24+
name: install dependency
25+
command: yarn
26+
- save_cache:
27+
paths:
28+
- node_modules
29+
key: v1-dependencies-\{{ checksum "package.json" }}
30+
31+
- run:
32+
name: auto generate project using this template
33+
run: bash test.sh
34+
- persist_to_workspace:
35+
root: ~/repo
36+
paths:
37+
- vue-authoring-demo
38+
39+
build:
40+
<<: *defaults
41+
steps:
42+
- attach_workspace:
43+
at: ~/repo/vue-authoring-demo
44+
- run: yarn build:component
45+
- run: yarn build:storybook
46+
47+
smoke-test:
48+
<<: *defaults
49+
steps:
50+
- attach_workspace:
51+
at: ~/repo/vue-authoring-demo
52+
- run: yarn dev -- --smoke-test
53+
54+
workflows:
55+
version: 2
56+
smoke_test:
57+
jobs:
58+
- init
59+
- build:
60+
requires:
61+
- init
62+
- smoke-test:
63+
requires:
64+
- init

meta.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ module.exports = {
116116
value: false,
117117
short: 'no'
118118
}
119-
]
119+
],
120+
default: 'yarn'
120121
}
121122
},
122123
filters: {

test.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
set -e
22

3-
yes "" | ./node_modules/.bin/vue init . test
4-
5-
cd test
6-
npm install
7-
npm run lint
8-
npm test
9-
npm run build
3+
yes "" | ./node_modules/.bin/vue init . vue-authoring-demo

0 commit comments

Comments
 (0)