summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-10 12:14:27 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2018-07-26 08:55:58 +0200
commit45988ac6c0c8ca661601dcd9fdf10171a13568c7 (patch)
tree3640f1536a90d70ac27a663ab979c17de4c81730 /.travis.yml
parent24e5aa668a291a70a97483caaf551e25bd7ea95a (diff)
ci: refactor all build steps into separate build scripts
this moves each step of the ci build into a separate script with the build type passed as an argument, allowing for easier modification of each individual step as necessary and making travis.yml more readable Differential Revision: https://phab.enlightenment.org/D6604 also includes: ci: break out make commands into travis.yml from build scripts this simplifies the platform-specific build scripts to only perform the configure stage of the build (and any additional setup) and then uses standardized commands for the build in addition to being simpler, this will also provide more/better info about build timings ref D6603
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml24
1 files changed, 21 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index db48ce3840..817e4f177f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -52,6 +52,7 @@ matrix:
52 - os: osx 52 - os: osx
53 env: 53 env:
54 DISTRO=Archlinux 54 DISTRO=Archlinux
55
55 - os: linux 56 - os: linux
56 env: 57 env:
57 allow_failures: 58 allow_failures:
@@ -66,13 +67,30 @@ before_script:
66 if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then 67 if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
67 docker pull stefanschmidt1/ci-support-files:$DISTRO 68 docker pull stefanschmidt1/ci-support-files:$DISTRO
68 fi 69 fi
70 - |
71 if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
72 docker version
73 docker run --cidfile $HOME/cid -t -d -v `pwd`:/src -w /src stefanschmidt1/ci-support-files:$DISTRO bash
74 cat $HOME/cid
75 fi
69 76
70script: 77script:
78 - .ci/ci-configure.sh "$CI_BUILD_TYPE"
79 - .ci/ci-make.sh "$CI_BUILD_TYPE"
80 - .ci/ci-make-checkbuild.sh "$CI_BUILD_TYPE"
81 - .ci/ci-make-examples.sh "$CI_BUILD_TYPE"
71 - | 82 - |
72 if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then 83 if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_BUILD_TYPE" == "" ]]; then
73 docker run -v `pwd`:/src -w /src stefanschmidt1/ci-support-files:$DISTRO /src/.ci/ci-linux-build.sh $CI_BUILD_TYPE 84 .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
85 fi
86 - .ci/ci-make-install.sh "$CI_BUILD_TYPE"
87 - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
88 - |
89 if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then
90 .ci/build-efl-app.sh
91 elif [[ "$CI_BUILD_TYPE" != "release-ready" ]] ; then
92 docker exec --env MAKEFLAGS="-j5" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-efl-app.sh
74 fi 93 fi
75 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-build.sh ; fi
76 94
77after_success: 95after_success:
78 - | 96 - |