]> granicus.if.org Git - graphviz/commitdiff
Use `build_and_test.sh` script in Travis build.
authorErwin Janssen <erwinjanssen@outlook.com>
Thu, 8 Sep 2016 12:00:51 +0000 (14:00 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 8 Sep 2016 18:53:38 +0000 (20:53 +0200)
This script makes it easier to add multiple platforms using docker.

.travis.yml
ci/build_and_test.sh [new file with mode: 0755]

index 297ea00d30ab7fd854381364064b3e3cfb8240d9..9ffa13023c45f07f3fbc21ff153ce07270ecc899 100644 (file)
@@ -25,13 +25,7 @@ install:
 
 script:
 - cd ${TRAVIS_BUILD_DIR}
-# Build and test code
-- ./autogen.sh
-- make
-- sudo make install
-- make check
-# Create source package to deploy
-- make dist
+- sudo ./ci/build_and_test.sh
 
 before_deploy:
 - export DEPLOYED_FILE=$(ls *.tar.gz)
diff --git a/ci/build_and_test.sh b/ci/build_and_test.sh
new file mode 100755 (executable)
index 0000000..accaa5e
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Run this script from the root source directory 
+
+./autogen.sh
+make
+make install
+make check
+make dist