ci: remove no longer needed make examples script
[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 script:
73   - .ci/ci-configure.sh "$CI_BUILD_TYPE"
74   - .ci/ci-setup-ccache.sh "$CI_BUILD_TYPE"
75   - .ci/ci-make.sh "$CI_BUILD_TYPE"
76   - |
77       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_BUILD_TYPE" == "" ]]; then
78           .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
79       fi
80   #- .ci/ci-make-install.sh "$CI_BUILD_TYPE"
81   - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
82   - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
83   #- |
84       #if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then
85         #true
86       #elif [[ "$CI_BUILD_TYPE" != "release-ready" ]] ; then
87         #docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-efl-app.sh
88       #fi
89 before_cache:
90   - .ci/ci-ccache-stats.sh
91   - |
92        mkdir -p $HOME/cachedir
93        if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
94          sudo chown travis:travis $HOME/.ccache
95          mkdir -p $HOME/cachedir/
96          sudo cp config.cache $HOME/cachedir/
97          sudo chown travis:travis $HOME/cachedir/config.cache
98          sudo chown travis:travis $HOME/autom4te.cache
99        else
100          cp config.cache $HOME/cachedir
101          mv $HOME/Library/Caches/Homebrew $HOME/cachedir/Homebrew
102        fi
103
104 notifications:
105   irc:
106     channels:
107       - "chat.freenode.net#edevelop"
108     on_success: change
109     on_failure: always
110     on_cancel: never
111     template:
112       - "TravisCI build %{build_number} in branch %{branch}: %{result} - %{message} (%{elapsed_time})"
113       - "Commit: %{commit_subject} (%{commit}) from %{author}"
114       - "Change view : %{compare_url}"
115       - "Build details : %{build_url}"