Skip to content
This repository was archived by the owner on Feb 19, 2022. It is now read-only.
Open
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
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

language: node_js

node_js:
# TODO: Support a Node v4 version
# https://github.com/FormidableLabs/denim-react-app/issues/3
#- "4"
- "5"
- "6"

sudo: false

branches:
only:
- master

before_install:
# GUI for real browsers.
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script:
# Check module.
- node --version
- npm --version
# TODO: npm run test

# Initialize a fresh project from templates
- npm install -g denim
- mkdir .test-project-tmp
- cd .test-project-tmp
- >-
denim $PWD/.. --prompts='{
"name":"whiz-bang",
"description":"Whiz Bang",
"destination":"whiz-bang"}'

# Run initialized project's own CI.
- cd whiz-bang
- npm install
- npm run lint
- npm run test
24 changes: 12 additions & 12 deletions denim.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ module.exports = {
},

prompts: {
name: {
message: "What would you like your application to be named?",
validate: function (val) {
return !!val.trim() || "A name must be entered!";
}
},
description: {
message: "Please provide a description of your application:",
validate: function (val) {
return !!val.trim() || "A description must be entered!";
}
name: {
message: "What would you like your application to be named?",
validate: function (val) {
return !!val.trim() || "A name must be entered!";
}
},
description: {
message: "Please provide a description of your application:",
validate: function (val) {
return !!val.trim() || "A description must be entered!";
}
}
}
};
};