2017-09-28 06:26:55 -07:00
|
|
|
language: c
|
2018-07-11 16:00:47 -07:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/cachedir
|
|
|
|
- $HOME/.ccache
|
2017-09-28 06:26:55 -07:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
|
2018-04-25 02:51:33 -07:00
|
|
|
env:
|
2018-07-12 06:17:35 -07:00
|
|
|
global:
|
2018-07-10 08:59:48 -07:00
|
|
|
- EIO_MONITOR_POLL=1
|
2018-07-10 15:43:55 -07:00
|
|
|
- CC="ccache gcc"
|
|
|
|
- CXX="ccache g++"
|
2017-09-28 06:26:55 -07:00
|
|
|
|
2018-11-16 03:35:55 -08:00
|
|
|
jobs:
|
|
|
|
include:
|
2019-01-28 09:00:24 -08:00
|
|
|
- os: osx
|
2019-05-29 09:20:15 -07:00
|
|
|
- os: linux
|
2019-06-19 06:26:01 -07:00
|
|
|
env: DISTRO=Fedora30-mingw CI_BUILD_TYPE=mingw
|
2019-01-28 09:00:26 -08:00
|
|
|
- os: linux
|
2019-06-19 06:26:01 -07:00
|
|
|
env: DISTRO=Fedora30 CI_BUILD_TYPE=options-enabled
|
2019-01-28 09:00:26 -08:00
|
|
|
- os: linux
|
2019-06-19 06:26:01 -07:00
|
|
|
env: DISTRO=Fedora30 CI_BUILD_TYPE=options-disabled
|
2019-01-28 09:00:26 -08:00
|
|
|
- os: linux
|
2019-06-19 06:26:01 -07:00
|
|
|
env: DISTRO=Fedora29 CI_BUILD_TYPE=wayland
|
2019-01-28 09:00:26 -08:00
|
|
|
- os: linux
|
2019-06-19 06:26:01 -07:00
|
|
|
env: DISTRO=Fedora29 CI_BUILD_TYPE=default
|
2019-01-28 09:00:26 -08:00
|
|
|
- os: linux
|
|
|
|
if: type = cron
|
2019-06-19 06:26:01 -07:00
|
|
|
env: DISTRO=Fedora29 CI_BUILD_TYPE=release-ready
|
2019-06-12 08:44:05 -07:00
|
|
|
- os: linux
|
|
|
|
if: type = cron
|
2019-06-19 06:26:01 -07:00
|
|
|
env: DISTRO=Ubuntu1804
|
2019-06-12 08:44:05 -07:00
|
|
|
- os: linux
|
|
|
|
if: type = cron
|
2019-06-19 06:26:01 -07:00
|
|
|
env: DISTRO=Ubuntu1904
|
2019-01-28 09:00:26 -08:00
|
|
|
- os: linux
|
|
|
|
if: type = cron
|
2019-06-19 06:26:01 -07:00
|
|
|
env: DISTRO=Debian96
|
2018-11-16 03:35:55 -08:00
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
2017-09-28 06:26:55 -07:00
|
|
|
|
2018-01-02 07:47:12 -08:00
|
|
|
before_install:
|
2018-07-12 07:05:09 -07:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
rm -rf $HOME/Library/Caches/Homebrew
|
|
|
|
rm -rf $HOME/cachedir/Homebrew/Homebrew
|
|
|
|
mv $HOME/cachedir/Homebrew $HOME/Library/Caches/Homebrew
|
|
|
|
.ci/ci-osx-deps.sh
|
|
|
|
fi
|
2018-01-02 07:47:12 -08:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
|
|
|
|
docker pull stefanschmidt1/ci-support-files:$DISTRO
|
|
|
|
fi
|
2018-07-10 09:14:27 -07:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
|
|
|
|
docker version
|
2018-07-10 15:43:55 -07:00
|
|
|
docker run --cidfile $HOME/cid -t -d -v `pwd`:/src -v $HOME/.ccache:/root/.ccache -w /src stefanschmidt1/ci-support-files:$DISTRO bash
|
2018-07-11 16:00:47 -07:00
|
|
|
cp $HOME/cachedir/config.cache . || true
|
2018-07-10 09:14:27 -07:00
|
|
|
fi
|
2018-01-02 07:47:12 -08:00
|
|
|
|
2018-07-10 15:43:55 -07:00
|
|
|
- .ci/ci-ccache-stats.sh
|
2018-08-08 06:38:24 -07:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
cp $HOME/cachedir/config.cache . || true
|
|
|
|
fi
|
|
|
|
|
2017-09-28 06:26:55 -07:00
|
|
|
script:
|
2018-07-10 09:14:27 -07:00
|
|
|
- .ci/ci-configure.sh "$CI_BUILD_TYPE"
|
2018-07-10 15:43:55 -07:00
|
|
|
- .ci/ci-setup-ccache.sh "$CI_BUILD_TYPE"
|
2018-07-10 09:14:27 -07:00
|
|
|
- .ci/ci-make.sh "$CI_BUILD_TYPE"
|
2018-01-02 07:47:12 -08:00
|
|
|
- |
|
2018-07-10 09:14:27 -07:00
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_BUILD_TYPE" == "" ]]; then
|
|
|
|
.ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
|
|
|
|
fi
|
2018-07-21 22:22:06 -07:00
|
|
|
#- .ci/ci-make-install.sh "$CI_BUILD_TYPE"
|
2018-07-13 15:31:03 -07:00
|
|
|
- .ci/ci-make-check.sh "$CI_BUILD_TYPE"
|
2018-07-10 09:14:27 -07:00
|
|
|
- .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
|
2018-07-21 22:22:06 -07:00
|
|
|
#- |
|
|
|
|
#if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then
|
|
|
|
#true
|
|
|
|
#elif [[ "$CI_BUILD_TYPE" != "release-ready" ]] ; then
|
2019-06-19 06:26:08 -07:00
|
|
|
#docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-efl-app.sh
|
2018-07-21 22:22:06 -07:00
|
|
|
#fi
|
2018-07-10 15:43:55 -07:00
|
|
|
before_cache:
|
|
|
|
- .ci/ci-ccache-stats.sh
|
|
|
|
- |
|
2018-07-11 16:00:47 -07:00
|
|
|
mkdir -p $HOME/cachedir
|
2018-07-10 15:43:55 -07:00
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
|
|
|
|
sudo chown travis:travis $HOME/.ccache
|
2018-07-11 16:00:47 -07:00
|
|
|
mkdir -p $HOME/cachedir/
|
|
|
|
sudo cp config.cache $HOME/cachedir/
|
|
|
|
sudo chown travis:travis $HOME/cachedir/config.cache
|
|
|
|
sudo chown travis:travis $HOME/autom4te.cache
|
2018-07-10 15:43:55 -07:00
|
|
|
else
|
2018-07-11 16:00:47 -07:00
|
|
|
cp config.cache $HOME/cachedir
|
2018-07-12 07:05:09 -07:00
|
|
|
mv $HOME/Library/Caches/Homebrew $HOME/cachedir/Homebrew
|
2018-07-10 15:43:55 -07:00
|
|
|
fi
|
2018-01-02 07:47:12 -08:00
|
|
|
|
2018-04-25 09:41:59 -07:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#edevelop"
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2018-08-01 10:37:50 -07:00
|
|
|
on_cancel: never
|
2018-05-17 06:36:04 -07:00
|
|
|
template:
|
2018-07-23 07:27:53 -07:00
|
|
|
- "TravisCI build %{build_number} in branch %{branch}: %{result} - %{message} (%{elapsed_time})"
|
2018-05-17 06:36:04 -07:00
|
|
|
- "Commit: %{commit_subject} (%{commit}) from %{author}"
|
|
|
|
- "Change view : %{compare_url}"
|
|
|
|
- "Build details : %{build_url}"
|