-
Notifications
You must be signed in to change notification settings - Fork 43
/
.travis.yml
42 lines (41 loc) · 1.65 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
sudo: false
language: node_js
node_js:
- 6
before_install:
- npm install @dojo/cli grunt-cli typings -g
script:
- pushd .
- 'if [ -d "site/source/tutorials/$TUTORIAL/demo/initial/biz-e-corp" ]; then
cd site/source/tutorials/$TUTORIAL/demo/initial/biz-e-corp || travis_terminate 1;
npm install || travis_terminate 1;
npm run build || travis_terminate 1;
fi'
- popd
- pushd .
- 'if [ -d "site/source/tutorials/$TUTORIAL/demo/finished/biz-e-corp" ]; then
cd site/source/tutorials/$TUTORIAL/demo/finished/biz-e-corp || travis_terminate 1;
npm install || travis_terminate 1;
npm run build || travis_terminate 1;
npm test || travis_terminate 1;
fi'
- popd
jobs:
include:
stage: Test site
env:
- TUTORIAL=N/A
script:
- touch site/db.json
- grunt test
- grunt ci
deploy:
provider: script
script:
- grunt publish
skip_cleanup: true
on:
branch: master
notifications:
slack:
secure: pa7a/RNr73mJwoWK1Ho5FbZNV59jB3HoK4v6LOgk2Yz2eB+tyDDppserU3JLSFntg73e5zshU1cne7CR+rgEJCQDLFYr9sl5FMw8hkveXYdaI/uq3pyWF5hkAScI6jVjl5soWSnMc5UCMpOmKeddFkPtDcyAWkrTpTUqHlubEgUpP7pezVqd/vESvZhwFXRrBkZGsDdm+fNLKql8ph1sZlGT/K1B9inkWAfxPnGGJVNrVBffwZPjr4gOn06dW7qgN9uljOBF3iI3xNfTjyQIb2/7ysvsO7qOXzIxV5o1TICYCm616m5+zwC7CfVYfHDR9FiKfQlg+nTtwc4Cyyy5+akw7i7/Urw0ORfU7QQf8felMadsLgjf6Qii2MApBYqryWzh9fTwjYLckOLERnPTtzqV3GmiSFvQvjODdYuW53mUKcBbd+3HBQACF9hAZhBdwj1dsoQkbnHD/hKeZLo2GupyonB3XPdTcEofmJNR+ljBJxQ/oyLZ31xdGZ8PuCDWpBfPNIr53LxloSJwfSqQ5Li2oSQtP99g1I/hoTjQXO5Y5kxDrax7pnY7PmsjH4Hp4RSRgkcMYB3eTuQnLedRC5HTDB4y+dBcJ44Qmw/5ooVlxAuRiTOx51ZVkUbgRdj4k3X6P4F55du+uYt8QRy5sZadeSvcypmNxoytgQaj5y0=