ci: travis: stop osx builds until build failures are solved on Travis
[platform/upstream/efl.git] / .travis.yml
1 version: ~> 1.0
2
3 language: c
4 cache:
5   directories:
6     - $HOME/cachedir
7     - $HOME/.ccache
8 dist: bionic
9
10 osx_image: xcode11.3
11
12 addons:
13   homebrew:
14     packages:
15       - gettext
16       - check
17       - bullet
18       - dbus
19       - fontconfig
20       - freetype
21       - fribidi
22       - gst-plugins-good
23       - gstreamer
24       - luajit
25       - openssl
26       - webp
27       - libsndfile
28       - glib
29       - libspectre
30       - libraw
31       - librsvg
32       - poppler
33       - lz4
34       - pulseaudio
35       - ccache
36       - ninja
37       - python3
38       - libffi
39     update: true
40
41 env:
42   global:
43     - EIO_MONITOR_POLL=1
44     - CC="ccache gcc"
45     - CXX="ccache g++"
46
47 jobs:
48   include:
49     - os: linux
50       env: DISTRO=Fedora31-mingw CI_BUILD_TYPE=mingw
51     - os: linux
52       env: DISTRO=Fedora31 CI_BUILD_TYPE=options-enabled
53     - os: linux
54       env: DISTRO=Fedora31 CI_BUILD_TYPE=options-disabled
55     - os: linux
56       env: DISTRO=Fedora31 CI_BUILD_TYPE=wayland
57     - os: linux
58       env: DISTRO=Fedora31 CI_BUILD_TYPE=default
59     - os: linux
60       if: type = cron
61       env: DISTRO=Fedora31 CI_BUILD_TYPE=release-ready
62     - os: linux
63       if: type = cron
64       env: DISTRO=Ubuntu1804
65     - os: linux
66       if: type = cron
67       env: DISTRO=Ubuntu1910
68     - os: linux
69       if: type = cron
70       env: DISTRO=Debian96
71     - os: linux
72       if: type = cron
73       env: DISTRO=Fedora31 CI_BUILD_TYPE=coverity
74     - os: linux
75       if: type = cron
76       env: DISTRO=Fedora31 CI_BUILD_TYPE=asan
77     - os: linux
78       if: type = cron
79       env: DISTRO=Fedora31-exactness CI_BUILD_TYPE=exactness
80     - os: linux
81       if: type = cron
82       env: CI_BUILD_TYPE=codecov
83     - os: linux
84       if: type = cron
85       arch: arm64
86       env: CI_BUILD_TYPE=default
87
88 services:
89   - docker
90
91 before_install:
92   - |
93       if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
94         rm -rf $HOME/Library/Caches/Homebrew
95         rm -rf $HOME/cachedir/Homebrew/Homebrew
96         mv $HOME/cachedir/Homebrew $HOME/Library/Caches/Homebrew
97         pip3 install meson
98       fi
99
100 before_script:
101   - |
102       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
103         docker pull stefanschmidt1/ci-support-files:$DISTRO
104         docker version
105         docker run --cap-add SYS_PTRACE --cidfile $HOME/cid -t -d -v `pwd`:/src -v $HOME/.ccache:/root/.ccache -w /src stefanschmidt1/ci-support-files:$DISTRO bash
106       fi
107   - |
108       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" == "" ]]; then
109         .ci/ubuntu-bionic-install-deps.sh
110       fi
111   - .ci/ci-ccache-stats.sh
112
113 script:
114   - .ci/ci-configure.sh "$CI_BUILD_TYPE"
115   - .ci/ci-setup-ccache.sh "$CI_BUILD_TYPE"
116   - .ci/ci-make.sh "$CI_BUILD_TYPE"
117   - .ci/ci-make-install.sh "$CI_BUILD_TYPE"
118   - .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
119   - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
120   - .ci/ci-exactness.sh "$CI_BUILD_TYPE"
121   - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
122   - .ci/ci-build-test.sh "$CI_BUILD_TYPE"
123
124 before_cache:
125   - .ci/ci-ccache-stats.sh
126   - |
127        mkdir -p $HOME/cachedir
128        if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
129          sudo chown travis:travis $HOME/.ccache
130        else
131          mv $HOME/Library/Caches/Homebrew $HOME/cachedir/Homebrew
132        fi
133
134 notifications:
135   irc:
136     channels:
137       - "chat.freenode.net#edevelop"
138     on_success: change
139     on_failure: always
140     template:
141       - "TravisCI build %{build_number} in branch %{branch}: %{result} - %{message} (%{elapsed_time})"
142       - "Commit: %{commit_subject} (%{commit}) from %{author}"
143       - "Change view : %{compare_url}"
144       - "Build details : %{build_url}"