Skip to content

Commit 1375577

Browse files
committed
add travis ci for the component archetype
1 parent cfbc3ac commit 1375577

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
yo electrode-component --projectName=product-card --packageName=product-card --packageGitHubOrg=walmartlabs --developerName="Arpan Nanavati" --ghUser=ananavati --ghRepo=product-card --createDirectory=Y
2+
3+
language: node_js
4+
5+
node_js:
6+
- "4.2"
7+
- "5.0"
8+
9+
brances:
10+
only:
11+
- master
12+
13+
before_install:
14+
- currentfolder=${PWD##*/}
15+
- if [ "$currentfolder" != 'electrode-archetype-react-component' ]; then cd .. && eval "mv $currentfolder electrode-archetype-react-component" && cd electrode-archetype-react-component; fi
16+
- npm install
17+
- cd dev ; npm install ; cd ..
18+
19+
script:
20+
# run the archetype check task.
21+
- gulp archetype:check
22+
23+
# create a new component using electrode-component yeoman generator to run the components unit-tests.
24+
- npm install -g yo gulp generator-electrode-component
25+
- yo electrode-component --projectName=product-card --packageName=product-card --packageGitHubOrg=walmartlabs --developerName="Arpan Nanavati" --ghUser=ananavati --ghRepo=product-card --createDirectory=Y
26+
- cd product-card
27+
28+
# run ci tests and generate a bundle.
29+
- gulp check-ci
30+
- gulp build

0 commit comments

Comments
 (0)