-
Notifications
You must be signed in to change notification settings - Fork 67
/
.travis.yml
39 lines (32 loc) · 986 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
---
sudo: true
language: node_js
node_js:
- 8
addons:
mariadb: '5.5'
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env:
global:
- CXX=g++-4.8
- DB_ROOT_PASS="$(openssl rand -hex 20)"
- APPUSER="$USER"
- CXX=g++-4.8
install:
- wget https://dl.google.com/closure-compiler/compiler-latest.zip
- unzip -n compiler-latest.zip
- if [ -n "$CONSUMER_KEY" ]; then ./bin/travis/install.sh; fi
script:
# TODO: Enable checkTypes after adding more types to externs.js
- "cat *.js | java -jar closure-compiler-*.jar --language_in=ECMASCRIPT6 --warning_level=VERBOSE --jscomp_off=checkTypes
--externs=externs/externs.js --externs=externs/core.js --externs=externs/process.js
--externs=externs/underscore-1.5.1.js > /dev/null"
- if [ -n "$CONSUMER_KEY" ]; then npm test; fi
after_script:
- if [ -n "$CONSUMER_KEY" ]; then npm run-script unblock; fi
after_failure:
- if [ -n "$CONSUMER_KEY" ]; then cat bt.log; fi