forked from MyEtherWallet/ethereum-lists
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (40 loc) · 1.09 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
language: node_js
node_js: '8'
script:
- |
val=$(node checkFormat.js);
if [[ $val != 0 ]]; then
echo "Formatting errors! Please check your object keys spellings, commas and or other things that might invalidate your JSON and try again";
exit 1;
else
echo "No errors";
exit 0;
fi
stages:
- name: check contract format
- name: check token format
jobs:
fast_finish: true
include:
- stage: check contract format
script:
- |
val=$(node checkContract.js);
if [[ $val != 0 ]]; then
echo "Formatting errors! Please check your object keys spellings, commas and or other things that might invalidate your JSON and try again";
exit 1;
else
echo "No errors";
exit 0;
fi
- stage: check token format
script:
- |
val=$(node checkToken.js);
if [[ $val != 0 ]]; then
echo "Formatting errors! Please check your object keys spellings, commas and or other things that might invalidate your JSON and try again";
exit 1;
else
echo "No errors";
exit 0;
fi