Skip to content

Commit a08587f

Browse files
mfikesswannodette
authored andcommitted
CLJS-2098: Set up CI
1 parent 00c9aec commit a08587f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
dist: trusty
2+
3+
language: node_js
4+
5+
node_js:
6+
- "8"
7+
8+
before_install:
9+
- wget https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/jsshell-linux-x86_64.zip
10+
- unzip jsshell-linux-x86_64.zip -d spidermoney
11+
- sudo apt-get install -y libjavascriptcoregtk-3.0-bin
12+
13+
before_script:
14+
- script/bootstrap
15+
- mkdir -p builds/out-adv
16+
- bin/cljsc src/test/cljs "{:optimizations :advanced :output-wrapper true :verbose true :compiler-stats true :parallel-build true :output-dir \"builds/out-adv\"}" > builds/out-adv/core-advanced-test.js
17+
18+
script:
19+
- jsc builds/out-adv/core-advanced-test.js | grep -o '[[:digit:]]*' | tail -n 2 | python script/check.py
20+
- ./spidermoney/js -f builds/out-adv/core-advanced-test.js | grep -o '[[:digit:]]*' | tail -n 2 | python script/check.py
21+
- script/test-self-host | grep -o '[[:digit:]]*' | tail -n 2 | python script/check.py
22+
- script/test-self-parity | grep -o '[[:digit:]]*' | tail -n 2 | python script/check.py

script/check.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env python
2+
3+
import sys
4+
5+
data = sys.stdin.read()
6+
for line in data.split('\n'):
7+
try:
8+
if int(line) > 0:
9+
sys.exit(-1)
10+
except ValueError:
11+
pass

0 commit comments

Comments
 (0)