aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-02-09 09:59:30 +0100
committerGitHub <[email protected]>2017-02-09 09:59:30 +0100
commit03afef50394dbbaac9510835c8568b8ad19f9389 (patch)
tree54784bd926fb055624c7600a4507467d8bdecd35
parentc4e8850567eaaed07c2d90eff0d4467a2b537fca (diff)
parent74796de9c7739830bf911f8246b939b6099e1298 (diff)
downloadotp-03afef50394dbbaac9510835c8568b8ad19f9389.tar.gz
otp-03afef50394dbbaac9510835c8568b8ad19f9389.tar.bz2
otp-03afef50394dbbaac9510835c8568b8ad19f9389.zip
Merge pull request #1336 from bjorng/bjorn/travis-less-verbose
Reduce size of the log file for Travis CI
-rw-r--r--.travis.yml2
-rwxr-xr-xscripts/build-otp20
2 files changed, 21 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 42151a16d2..baa55b383d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,7 +29,7 @@ before_script:
- kerl_deactivate
script:
- - ./otp_build all -a
+ - ./scripts/build-otp
after_success:
- $ERL_TOP/bin/dialyzer --build_plt --apps asn1 compiler crypto dialyzer edoc erts et hipe inets kernel mnesia observer public_key runtime_tools snmp ssh ssl stdlib syntax_tools wx xmerl --statistics
diff --git a/scripts/build-otp b/scripts/build-otp
new file mode 100755
index 0000000000..388fa8c276
--- /dev/null
+++ b/scripts/build-otp
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+function do_and_log {
+ log="scripts/latest-log.$$"
+ echo -n "$1... "
+ if ./otp_build $2 $3 >$log 2>&1; then
+ echo "done."
+ else
+ echo "failed."
+ tail -n 200 $log
+ echo "*** Failed ***"
+ exit 1
+ fi
+}
+
+do_and_log "Autoconfing" autoconf
+do_and_log "Configuring" configure
+do_and_log "Building OTP" boot -a
+
+exit 0