Revert "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: osx
50     - os: linux
51       env: DISTRO=Fedora31-mingw CI_BUILD_TYPE=mingw
52     - os: linux
53       env: DISTRO=Fedora31 CI_BUILD_TYPE=options-enabled
54     - os: linux
55       env: DISTRO=Fedora31 CI_BUILD_TYPE=options-disabled
56     - os: linux
57       env: DISTRO=Fedora31 CI_BUILD_TYPE=wayland
58     - os: linux
59       env: DISTRO=Fedora31 CI_BUILD_TYPE=default
60     - os: linux
61       if: type = cron
62       env: DISTRO=Fedora31 CI_BUILD_TYPE=release-ready
63     - os: linux
64       if: type = cron
65       env: DISTRO=Ubuntu1804
66     - os: linux
67       if: type = cron
68       env: DISTRO=Ubuntu1910
69     - os: linux
70       if: type = cron
71       env: DISTRO=Debian96
72     - os: linux
73       if: type = cron
74       env: DISTRO=Fedora31 CI_BUILD_TYPE=coverity
75     - os: linux
76       if: type = cron
77       env: DISTRO=Fedora31 CI_BUILD_TYPE=asan
78     - os: linux
79       if: type = cron
80       env: DISTRO=Fedora31-exactness CI_BUILD_TYPE=exactness
81     - os: linux
82       if: type = cron
83       env: CI_BUILD_TYPE=codecov
84     - os: linux
85       if: type = cron
86       arch: arm64
87       env: CI_BUILD_TYPE=default
88
89 services:
90   - docker
91
92 before_install:
93   - |
94       if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
95         rm -rf $HOME/Library/Caches/Homebrew
96         rm -rf $HOME/cachedir/Homebrew/Homebrew
97         mv $HOME/cachedir/Homebrew $HOME/Library/Caches/Homebrew
98         pip3 install meson
99       fi
100
101 before_script:
102   - |
103       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
104         docker pull stefanschmidt1/ci-support-files:$DISTRO
105         docker version
106         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
107       fi
108   - |
109       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" == "" ]]; then
110         .ci/ubuntu-bionic-install-deps.sh
111       fi
112   - .ci/ci-ccache-stats.sh
113
114 script:
115   - .ci/ci-configure.sh "$CI_BUILD_TYPE"
116   - .ci/ci-setup-ccache.sh "$CI_BUILD_TYPE"
117   - .ci/ci-make.sh "$CI_BUILD_TYPE"
118   - .ci/ci-make-install.sh "$CI_BUILD_TYPE"
119   - .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
120   - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
121   - .ci/ci-exactness.sh "$CI_BUILD_TYPE"
122   - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
123   - .ci/ci-build-test.sh "$CI_BUILD_TYPE"
124
125 before_cache:
126   - .ci/ci-ccache-stats.sh
127   - |
128        mkdir -p $HOME/cachedir
129        if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
130          sudo chown travis:travis $HOME/.ccache
131        else
132          mv $HOME/Library/Caches/Homebrew $HOME/cachedir/Homebrew
133        fi
134
135 notifications:
136   irc:
137     channels:
138       - "chat.freenode.net#edevelop"
139     on_success: change
140     on_failure: always
141     template:
142       - "TravisCI build %{build_number} in branch %{branch}: %{result} - %{message} (%{elapsed_time})"
143       - "Commit: %{commit_subject} (%{commit}) from %{author}"
144       - "Change view : %{compare_url}"
145       - "Build details : %{build_url}"