forked from Chalarangelo/30-seconds-of-interviews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 854 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
jobs:
include:
- stage: conditional_build
notifications:
email:
on_success: [change]
on_failure: [change]
language: node_js
node_js:
- node
install:
- yarn install
before_script:
- chmod +x .travis/checkIfCron.sh && ./.travis/checkIfCron.sh
- chmod +x .travis/lintweb.sh && ./.travis/lintweb.sh
- yarn formatQuestions
- yarn extractor
- yarn builder
script:
- chmod +x .travis/build.sh && ./.travis/build.sh
after_script:
- test $TRAVIS_EVENT_TYPE = cron
&& echo -e "\e[95mDeploying to Repository"
&& chmod +x .travis/push.sh
&& ./.travis/push.sh
- chmod +x .travis/forcepush.sh && ./.travis/forcepush.sh
cache:
directories:
- node_modules