ci: travis: remove no longer used BUILDSYSTEM env variable
[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     - MAKEFLAGS="-j5 -rR"
13     - EIO_MONITOR_POLL=1
14     - CC="ccache gcc"
15     - CXX="ccache g++"
16
17 jobs:
18   include:
19     - os: osx
20     - os: linux
21       env: DISTRO=Fedora30-mingw CI_BUILD_TYPE=mingw
22     - os: linux
23       env: DISTRO=Fedora30 CI_BUILD_TYPE=options-enabled
24     - os: linux
25       env: DISTRO=Fedora30 CI_BUILD_TYPE=options-disabled
26     - os: linux
27       env: DISTRO=Fedora29 CI_BUILD_TYPE=wayland
28     - os: linux
29       env: DISTRO=Fedora29 CI_BUILD_TYPE=default
30     - os: linux
31       if: type = cron
32       env: DISTRO=Fedora29 CI_BUILD_TYPE=release-ready
33     - os: linux
34       if: type = cron
35       env: DISTRO=Ubuntu1804
36     - os: linux
37       if: type = cron
38       env: DISTRO=Ubuntu1904
39     - os: linux
40       if: type = cron
41       env: DISTRO=Debian96
42
43 services:
44   - docker
45
46 before_install:
47   - |
48       if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
49         rm -rf $HOME/Library/Caches/Homebrew
50         rm -rf $HOME/cachedir/Homebrew/Homebrew
51         mv $HOME/cachedir/Homebrew $HOME/Library/Caches/Homebrew
52         .ci/ci-osx-deps.sh
53       fi
54
55 before_script:
56   - |
57       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
58         docker pull stefanschmidt1/ci-support-files:$DISTRO
59       fi
60   - |
61       if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
62         docker version
63         docker run --cidfile $HOME/cid -t -d -v `pwd`:/src -v $HOME/.ccache:/root/.ccache -w /src stefanschmidt1/ci-support-files:$DISTRO bash
64         cp $HOME/cachedir/config.cache . || true
65       fi
66
67   - .ci/ci-ccache-stats.sh
68   - |
69        if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
70          cp $HOME/cachedir/config.cache . || true
71        fi
72
73
74 script:
75   - .ci/ci-configure.sh "$CI_BUILD_TYPE"
76   - .ci/ci-setup-ccache.sh "$CI_BUILD_TYPE"
77   - .ci/ci-make.sh "$CI_BUILD_TYPE"
78   #- .ci/ci-make-examples.sh "$CI_BUILD_TYPE"
79   - |
80       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_BUILD_TYPE" == "" ]]; then
81           .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
82       fi
83   #- .ci/ci-make-install.sh "$CI_BUILD_TYPE"
84   - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
85   - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
86   #- |
87       #if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then
88         #true
89       #elif [[ "$CI_BUILD_TYPE" != "release-ready" ]] ; then
90         #docker exec --env MAKEFLAGS="-j5 -rR" --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-efl-app.sh
91       #fi
92 before_cache:
93   - .ci/ci-ccache-stats.sh
94   - |
95        mkdir -p $HOME/cachedir
96        if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
97          sudo chown travis:travis $HOME/.ccache
98          mkdir -p $HOME/cachedir/
99          sudo cp config.cache $HOME/cachedir/
100          sudo chown travis:travis $HOME/cachedir/config.cache
101          sudo chown travis:travis $HOME/autom4te.cache
102        else
103          cp config.cache $HOME/cachedir
104          mv $HOME/Library/Caches/Homebrew $HOME/cachedir/Homebrew
105        fi
106
107 notifications:
108   irc:
109     channels:
110       - "chat.freenode.net#edevelop"
111     on_success: change
112     on_failure: always
113     on_cancel: never
114     template:
115       - "TravisCI build %{build_number} in branch %{branch}: %{result} - %{message} (%{elapsed_time})"
116       - "Commit: %{commit_subject} (%{commit}) from %{author}"
117       - "Change view : %{compare_url}"
118       - "Build details : %{build_url}"