-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
31 lines (24 loc) · 956 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
29
30
31
language: node_js
node_js:
- v6
brances:
only:
- master
before_install:
- npm install -g gulp yo generator-electrode-component
- 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 ..
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
# run the archetype check task.
- gulp archetype:check
# create a new component using electrode-component yeoman generator to run the components unit-tests.
- 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