This repository has been archived by the owner on Nov 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Temporary fix #10
- Loading branch information
Showing
3 changed files
with
83 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Javascript Node CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | ||
# | ||
version: 2 | ||
|
||
defaults: &defaults | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:latest | ||
|
||
jobs: | ||
init: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- run: sudo apt-get install expect | ||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-\{{ checksum "package.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
- run: | ||
name: install dependency | ||
command: yarn | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-\{{ checksum "package.json" }} | ||
|
||
- run: | ||
name: auto generate project using this template | ||
command: chmod +x test.sh; ./test.sh | ||
- persist_to_workspace: | ||
root: ~/repo | ||
paths: | ||
- vue-authoring-demo | ||
|
||
build: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/repo/vue-authoring-demo | ||
- run: cd vue-authoring-demo | ||
- run: yarn build:component | ||
- run: yarn build:storybook | ||
|
||
smoke-test: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/repo/vue-authoring-demo | ||
- run: cd vue-authoring-demo | ||
- run: yarn dev -- --smoke-test | ||
|
||
workflows: | ||
version: 2 | ||
smoke_test: | ||
jobs: | ||
- init | ||
- build: | ||
requires: | ||
- init | ||
- smoke-test: | ||
requires: | ||
- init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,8 @@ module.exports = { | |
value: false, | ||
short: 'no' | ||
} | ||
] | ||
], | ||
default: 'yarn' | ||
} | ||
}, | ||
filters: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
set -e | ||
#!/usr/bin/env expect | ||
set timeout 360 | ||
|
||
yes "" | ./node_modules/.bin/vue init . test | ||
spawn ./node_modules/.bin/vue init . vue-authoring-demo | ||
|
||
cd test | ||
npm install | ||
npm run lint | ||
npm test | ||
npm run build | ||
# This happens because of | ||
# https://github.com/vuejs/vue-cli/issues/291 | ||
expect "Project name" { send "\n" } | ||
expect "Project description" { send "\n" } | ||
expect "Author" { send "\n" } | ||
expect "Select which storybook-addon you want to add" { send "\n" } | ||
expect "Add circleci for Continuos Build?" { send "\n" } | ||
expect "Configure circleci for Continuos Deployment" { send "\n" } | ||
expect "Sort story and scenario in alphabetical order?" { send "\n" } | ||
expect "Yes, use Yarn" { send "\n" } | ||
expect eof |