-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (22 loc) · 895 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: node_js
node_js:
- "4.2"
- "5.0"
brances:
only:
- master
before_install:
- currentfolder=${PWD##*/}
- if [ "$currentfolder" != 'electrode-archetype-react-component' ]; then cd .. && eval "mv $currentfolder electrode-archetype-react-component" && cd electrode-archetype-react-component; fi
- npm install
- cd dev ; npm install ; cd ..
script:
# run the archetype check task.
- gulp archetype:check
# create a new component using electrode-component yeoman generator to run the components unit-tests.
- npm install -g yo gulp generator-electrode-component
- yo electrode-component --projectName=product-card --packageName=product-card --packageGitHubOrg=walmartlabs --developerName="Arpan Nanavati" --ghUser=ananavati --ghRepo=product-card --createDirectory=Y
- cd product-card
# run ci tests and generate a bundle.
- gulp check-ci
- gulp build