forked from globocom/megadraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (38 loc) · 873 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
32
33
34
35
36
37
38
39
language: node_js
node_js:
- "6"
- "8"
- "10"
script:
- |
if [ "$TEST_TYPE" = build_website ]; then
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
echo "Building the web."
git config --global user.name "Travis CI"
git config --global user.email "travis@globo.com"
sh website/publish.sh
fi
elif [ "$TEST_TYPE" = lint ]; then
echo "Checking code lint."
make lint
elif [ "$TEST_TYPE" = unit ]; then
make unit
fi
env:
matrix:
- TEST_TYPE=unit
- TEST_TYPE=lint
- TEST_TYPE=build_website
matrix:
exclude:
- node_js: "6"
env: TEST_TYPE=build_website
- node_js: "6"
env: TEST_TYPE=lint
- node_js: "8"
env: TEST_TYPE=build_website
- node_js: "8"
env: TEST_TYPE=lint
cache:
directories:
- node_modules