forked from clojure/clojurescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (58 loc) · 3.01 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
dist: xenial
git:
depth: 1000
language: node_js
node_js:
- "6"
before_install:
- wget https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/jsshell-linux-x86_64.zip
- unzip jsshell-linux-x86_64.zip -d spidermoney
- sudo apt-get install -y libjavascriptcoregtk-4.0-bin
- wget https://aka.ms/chakracore/cc_linux_x64_1_8_1 -O chakra-core.tar.gz
- tar xvzf chakra-core.tar.gz
- wget https://github.com/oracle/graal/releases/download/vm-1.0.0-rc12/graalvm-ce-1.0.0-rc12-linux-amd64.tar.gz
- tar xzf graalvm-ce-1.0.0-rc12-linux-amd64.tar.gz
before_script:
- script/bootstrap
- script/uberjar
- mkdir -p builds/out-adv
- bin/cljsc src/test/cljs "{:optimizations :advanced
:output-wrapper true
:verbose true
:compiler-stats true
:parallel-build true
:output-dir \"builds/out-adv\"
:npm-deps {:lodash \"4.17.4\"}
:closure-warnings {:non-standard-jsdoc :off :global-this :off}
:language-in :es6
:language-out :es5
:install-deps true
:foreign-libs [{:file \"src/test/cljs/calculator_global.js\"
:provides [\"calculator\"]
:global-exports {calculator Calculator}}
{:file \"src/test/cljs/es6_dep.js\"
:module-type :es6
:provides [\"es6_calc\"]}
{:file \"src/test/cljs/calculator.js\"
:module-type :commonjs
:provides [\"calculator\"]}
{:file \"src/test/cljs/es6_default_hello.js\"
:provides [\"es6_default_hello\"]
:module-type :es6}]}" > builds/out-adv/core-advanced-test.js
script:
- lein test
- jsc builds/out-adv/core-advanced-test.js | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
- ./spidermoney/js -f builds/out-adv/core-advanced-test.js | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
- ./ChakraCoreFiles/bin/ch builds/out-adv/core-advanced-test.js | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
- ./graalvm-ce-1.0.0-rc12/bin/js builds/out-adv/core-advanced-test.js | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
- script/test-self-host | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
- script/test-self-parity | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
- script/test-cli node | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
- grep '0 failures, 0 errors.' test-out.txt