ci: remove no longer needed MAKEFLAGS env variable
[platform/upstream/efl.git] / .travis.yml
1 language: c
2 cache:
3   directories:
4     - $HOME/cachedir
5     - $HOME/.ccache
6     - $HOME/autom4te.cache
7 sudo: required
8 dist: trusty
9
10 env:
11   global:
12     - EIO_MONITOR_POLL=1
13     - CC="ccache gcc"
14     - CXX="ccache g++"
15
16 jobs:
17   include:
18     - os: osx
19     - os: linux
20       env: DISTRO=Fedora30-mingw CI_BUILD_TYPE=mingw
21     - os: linux
22       env: DISTRO=Fedora30 CI_BUILD_TYPE=options-enabled
23     - os: linux
24       env: DISTRO=Fedora30 CI_BUILD_TYPE=options-disabled
25     - os: linux
26       env: DISTRO=Fedora29 CI_BUILD_TYPE=wayland
27     - os: linux
28       env: DISTRO=Fedora29 CI_BUILD_TYPE=default
29     - os: linux
30       if: type = cron
31       env: DISTRO=Fedora29 CI_BUILD_TYPE=release-ready
32     - os: linux
33       if: type = cron
34       env: DISTRO=Ubuntu1804
35     - os: linux
36       if: type = cron
37       env: DISTRO=Ubuntu1904
38     - os: linux
39       if: type = cron
40       env: DISTRO=Debian96
41
42 services:
43   - docker
44
45 before_install:
46   - |
47       if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
48         rm -rf $HOME/Library/Caches/Homebrew
49         rm -rf $HOME/cachedir/Homebrew/Homebrew
50         mv $HOME/cachedir/Homebrew $HOME/Library/Caches/Homebrew
51         .ci/ci-osx-deps.sh
52       fi
53
54 before_script:
55   - |
56       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
57         docker pull stefanschmidt1/ci-support-files:$DISTRO
58       fi
59   - |
60       if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
61         docker version
62         docker run --cidfile $HOME/cid -t -d -v `pwd`:/src -v $HOME/.ccache:/root/.ccache -w /src stefanschmidt1/ci-support-files:$DISTRO bash
63         cp $HOME/cachedir/config.cache . || true
64       fi
65
66   - .ci/ci-ccache-stats.sh
67   - |
68        if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
69          cp $HOME/cachedir/config.cache . || true
70        fi
71
72
73 script:
74   - .ci/ci-configure.sh "$CI_BUILD_TYPE"
75   - .ci/ci-setup-ccache.sh "$CI_BUILD_TYPE"
76   - .ci/ci-make.sh "$CI_BUILD_TYPE"
77   #- .ci/ci-make-examples.sh "$CI_BUILD_TYPE"
78   - |
79       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_BUILD_TYPE" == "" ]]; then
80           .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
81       fi
82   #- .ci/ci-make-install.sh "$CI_BUILD_TYPE"
83   - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
84   - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
85   #- |
86       #if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then
87         #true
88       #elif [[ "$CI_BUILD_TYPE" != "release-ready" ]] ; then
89         #docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-efl-app.sh
90       #fi
91 before_cache:
92   - .ci/ci-ccache-stats.sh
93   - |
94        mkdir -p $HOME/cachedir
95        if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
96          sudo chown travis:travis $HOME/.ccache
97          mkdir -p $HOME/cachedir/
98          sudo cp config.cache $HOME/cachedir/
99          sudo chown travis:travis $HOME/cachedir/config.cache
100          sudo chown travis:travis $HOME/autom4te.cache
101        else
102          cp config.cache $HOME/cachedir
103          mv $HOME/Library/Caches/Homebrew $HOME/cachedir/Homebrew
104        fi
105
106 notifications:
107   irc:
108     channels:
109       - "chat.freenode.net#edevelop"
110     on_success: change
111     on_failure: always
112     on_cancel: never
113     template:
114       - "TravisCI build %{build_number} in branch %{branch}: %{result} - %{message} (%{elapsed_time})"
115       - "Commit: %{commit_subject} (%{commit}) from %{author}"
116       - "Change view : %{compare_url}"
117       - "Build details : %{build_url}"