travis: temporarily disabled mingw job as hot fix
[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 os:
11   - linux
12   - osx
13
14 env:
15   global:
16     - MAKEFLAGS="-j5 -rR"
17     - EIO_MONITOR_POLL=1
18     - CC="ccache gcc"
19     - CXX="ccache g++"
20
21 jobs:
22   include:
23     - env:
24       - os: linux
25       - DISTRO=Fedora28
26       - CI_BUILD_TYPE=options-enabled
27     - env:
28       - os: linux
29       - DISTRO=Fedora28
30       - CI_BUILD_TYPE=options-disabled
31     - env:
32       - os: linux
33       - DISTRO=Fedora28
34       - CI_BUILD_TYPE=options-enabled
35       - BUILDSYSTEM=ninja
36     - env:
37       - os: linux
38       - DISTRO=Fedora28
39       - CI_BUILD_TYPE=options-disabled
40       - BUILDSYSTEM=ninja
41     - if: type = cron
42       env:
43         - os: linux
44         - DISTRO=Ubuntu1804
45     - if: type = cron
46       env:
47         - os: linux
48         - DISTRO=Fedora28
49         - CI_BUILD_TYPE=release-ready
50     - if: type = cron
51       env:
52         - os: linux
53         - DISTRO=Debian91
54     - if: type = cron
55       env:
56         - os: linux
57         - DISTRO=Ubuntu1804
58         - BUILDSYSTEM=ninja
59     - if: type = cron
60       env:
61         - os: linux
62         - DISTRO=Fedora28
63         - CI_BUILD_TYPE=release-ready
64         - BUILDSYSTEM=ninja
65     - if: type = cron
66       env:
67         - os: linux
68         - DISTRO=Debian91
69         - BUILDSYSTEM=ninja
70   exclude:
71     - os: linux
72
73 #    - env:
74 #      - os: linux
75 #      - DISTRO=Fedora28
76 #      - CI_BUILD_TYPE=mingw
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         .ci/ci-osx-deps.sh
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         cp $HOME/cachedir/config.cache . || true
100       fi
101
102   - .ci/ci-ccache-stats.sh
103   - |
104        if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
105          cp $HOME/cachedir/config.cache . || true
106        fi
107
108
109 script:
110   - .ci/ci-configure.sh "$CI_BUILD_TYPE"
111   - .ci/ci-setup-ccache.sh "$CI_BUILD_TYPE"
112   - .ci/ci-make.sh "$CI_BUILD_TYPE"
113   - .ci/ci-make-checkbuild.sh "$CI_BUILD_TYPE"
114   #- .ci/ci-make-examples.sh "$CI_BUILD_TYPE"
115   - |
116       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_BUILD_TYPE" == "" ]]; then
117           .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
118       fi
119   #- .ci/ci-make-install.sh "$CI_BUILD_TYPE"
120   - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
121   - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
122   #- |
123       #if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then
124         #true
125       #elif [[ "$CI_BUILD_TYPE" != "release-ready" ]] ; then
126         #docker exec --env MAKEFLAGS="-j5 -rR" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-efl-app.sh
127       #fi
128 before_cache:
129   - .ci/ci-ccache-stats.sh
130   - |
131        mkdir -p $HOME/cachedir
132        if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
133          sudo chown travis:travis $HOME/.ccache
134          mkdir -p $HOME/cachedir/
135          sudo cp config.cache $HOME/cachedir/
136          sudo chown travis:travis $HOME/cachedir/config.cache
137          sudo chown travis:travis $HOME/autom4te.cache
138        else
139          cp config.cache $HOME/cachedir
140          mv $HOME/Library/Caches/Homebrew $HOME/cachedir/Homebrew
141        fi
142
143 after_success:
144   - |
145       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
146         docker login -u stefanschmidt1 -p "$DOCKER_PASSWORD"
147         docker tag stefanschmidt1/ci-support-files:$DISTRO stefanschmidt1/ci-support-files:$DISTRO-$TRAVIS_BUILD_NUMBER
148         docker push stefanschmidt1/ci-support-files:$DISTRO
149         docker push stefanschmidt1/ci-support-files:$DISTRO-$TRAVIS_BUILD_NUMBER
150       fi
151
152 notifications:
153   irc:
154     channels:
155       - "chat.freenode.net#edevelop"
156     on_success: change
157     on_failure: always
158     on_cancel: never
159     template:
160       - "TravisCI build %{build_number} in branch %{branch}: %{result} - %{message} (%{elapsed_time})"
161       - "Commit: %{commit_subject} (%{commit}) from %{author}"
162       - "Change view : %{compare_url}"
163       - "Build details : %{build_url}"