Skip to content

Added generate test #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
example/test-project

# Logs
logs
*.log
Expand Down
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: node_js
sudo: true
node_js: stable
env:
matrix:
- version=latest
- version=current
matrix:
fast_finish: true
allow_failures:
- env: version=latest
before_install:
- sudo apt-get install expect
install:
- cd example
- npm install --no-package-lock
- ./initialize
script:
- cd test-project
- npm install
- 'if [ "$version" == "latest" ]; then
npm update;
fi'
- npm run build
notifications:
email: false
10 changes: 10 additions & 0 deletions example/initialize
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/expect
set timeout 360

spawn ./node_modules/.bin/vue init ../ test-project

# This happens because of
# https://github.com/vuejs/vue-cli/issues/291
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect "name" { send "\n" }
expect "author" { send "\n" }
expect "vue-cli · Generated" { send "\n" }
15 changes: 15 additions & 0 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "example",
"description": "example",
"version": "1.0.0",
"devDependencies": {
"vue-cli": "^2.9.1"
},
"license": "UNLICENSED",
"main": "n/a",
"private": true,
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/nuxt-community/typescript-template.git"
}
}