ci: travis: remove left over from autotools build
[platform/upstream/efl.git] / .travis.yml
1 language: c
2 cache:
3   directories:
4     - $HOME/cachedir
5     - $HOME/.ccache
6 sudo: required
7 dist: trusty
8
9 osx_image: xcode10.2
10
11 addons:
12   homebrew:
13     packages:
14       - gettext
15       - check
16       - bullet
17       - dbus
18       - fontconfig
19       - freetype
20       - fribidi
21       - gst-plugins-good
22       - gstreamer
23       - luajit
24       - openssl
25       - webp
26       - libsndfile
27       - glib
28       - libspectre
29       - libraw
30       - librsvg
31       - poppler
32       - lz4
33       - pulseaudio
34       - ccache
35       - ninja
36       - python3
37       - libffi
38
39 env:
40   global:
41     - EIO_MONITOR_POLL=1
42     - CC="ccache gcc"
43     - CXX="ccache g++"
44
45 jobs:
46   include:
47     - os: osx
48     - os: linux
49       env: DISTRO=Fedora30-mingw CI_BUILD_TYPE=mingw
50     - os: linux
51       env: DISTRO=Fedora30 CI_BUILD_TYPE=options-enabled
52     - os: linux
53       env: DISTRO=Fedora30 CI_BUILD_TYPE=options-disabled
54     - os: linux
55       env: DISTRO=Fedora29 CI_BUILD_TYPE=wayland
56     - os: linux
57       env: DISTRO=Fedora29 CI_BUILD_TYPE=default
58     - os: linux
59       if: type = cron
60       env: DISTRO=Fedora29 CI_BUILD_TYPE=release-ready
61     - os: linux
62       if: type = cron
63       env: DISTRO=Ubuntu1804
64     - os: linux
65       if: type = cron
66       env: DISTRO=Ubuntu1904
67     - os: linux
68       if: type = cron
69       env: DISTRO=Debian96
70
71 services:
72   - docker
73
74 before_install:
75   - |
76       if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
77         rm -rf $HOME/Library/Caches/Homebrew
78         rm -rf $HOME/cachedir/Homebrew/Homebrew
79         mv $HOME/cachedir/Homebrew $HOME/Library/Caches/Homebrew
80         pip3 install meson
81       fi
82
83 before_script:
84   - |
85       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
86         docker pull stefanschmidt1/ci-support-files:$DISTRO
87       fi
88   - |
89       if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
90         docker version
91         docker run --cidfile $HOME/cid -t -d -v `pwd`:/src -v $HOME/.ccache:/root/.ccache -w /src stefanschmidt1/ci-support-files:$DISTRO bash
92       fi
93   - .ci/ci-ccache-stats.sh
94
95 script:
96   - .ci/ci-configure.sh "$CI_BUILD_TYPE"
97   - .ci/ci-setup-ccache.sh "$CI_BUILD_TYPE"
98   - .ci/ci-make.sh "$CI_BUILD_TYPE"
99   - |
100       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_BUILD_TYPE" == "" ]]; then
101           .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
102       fi
103   #- .ci/ci-make-install.sh "$CI_BUILD_TYPE"
104   - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
105   - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
106   #- |
107       #if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then
108         #true
109       #elif [[ "$CI_BUILD_TYPE" != "release-ready" ]] ; then
110         #docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-efl-app.sh
111       #fi
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     on_cancel: never
129     template:
130       - "TravisCI build %{build_number} in branch %{branch}: %{result} - %{message} (%{elapsed_time})"
131       - "Commit: %{commit_subject} (%{commit}) from %{author}"
132       - "Change view : %{compare_url}"
133       - "Build details : %{build_url}"