ci: enable benchmark target again
[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: trusty
9
10 osx_image: xcode10.2
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
40 env:
41   global:
42     - EIO_MONITOR_POLL=1
43     - CC="ccache gcc"
44     - CXX="ccache g++"
45
46 jobs:
47   include:
48     - os: osx
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
78 services:
79   - docker
80
81 before_install:
82   - |
83       if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
84         rm -rf $HOME/Library/Caches/Homebrew
85         rm -rf $HOME/cachedir/Homebrew/Homebrew
86         mv $HOME/cachedir/Homebrew $HOME/Library/Caches/Homebrew
87         pip3 install meson
88       fi
89
90 before_script:
91   - |
92       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
93         docker pull stefanschmidt1/ci-support-files:$DISTRO
94       fi
95   - |
96       if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
97         docker version
98         docker run --cidfile $HOME/cid -t -d -v `pwd`:/src -v $HOME/.ccache:/root/.ccache -w /src stefanschmidt1/ci-support-files:$DISTRO bash
99       fi
100   - .ci/ci-ccache-stats.sh
101
102 script:
103   - .ci/ci-configure.sh "$CI_BUILD_TYPE"
104   - .ci/ci-setup-ccache.sh "$CI_BUILD_TYPE"
105   - .ci/ci-make.sh "$CI_BUILD_TYPE"
106   - .ci/ci-make-install.sh "$CI_BUILD_TYPE"
107   - .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
108   - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
109   - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
110   - .ci/ci-build-test.sh "$CI_BUILD_TYPE"
111
112 before_cache:
113   - .ci/ci-ccache-stats.sh
114   - |
115        mkdir -p $HOME/cachedir
116        if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
117          sudo chown travis:travis $HOME/.ccache
118        else
119          mv $HOME/Library/Caches/Homebrew $HOME/cachedir/Homebrew
120        fi
121
122 notifications:
123   irc:
124     channels:
125       - "chat.freenode.net#edevelop"
126     on_success: change
127     on_failure: always
128     template:
129       - "TravisCI build %{build_number} in branch %{branch}: %{result} - %{message} (%{elapsed_time})"
130       - "Commit: %{commit_subject} (%{commit}) from %{author}"
131       - "Change view : %{compare_url}"
132       - "Build details : %{build_url}"