2020-02-06 04:32:56 +01:00
# Copyright 2019 Jacob Hrbek <kreyren@rixotstudio.cz>
# Distributed under the terms of the GNU General Public License v3 (https://www.gnu.org/licenses/gpl-3.0.en.html) or later
# Based in part upon 'travis.yml' from rsplib (https://raw.githubusercontent.com/dreibh/rsplib/master/.travis.yml), which is:
# Copyright (C) 2018-2019 by Thomas Dreibholz <dreibh@iem.uni-due.de> as GPLv3 or any other GPL at your option
sudo : required
# Use matrix to run tests on different environments
matrix :
include :
2020-02-09 19:29:43 +01:00
## BUILD ##
2020-02-06 04:32:56 +01:00
2020-02-09 19:29:43 +01:00
# Exherbo Linux
# Exherbo with GCC
- name : "Exherbo Linux with GCC"
os : linux
2020-02-09 19:48:11 +01:00
dist : bionic
group : travis_latest
2020-02-09 19:29:43 +01:00
cache :
directories :
- /var/db/paludis
env :
DOCKER="exherbo_ci:latest"
VARIANT="exherbo"
TOOL="build"
COMPILER_C="gcc"
COMPILER_CXX="g++"
2020-02-09 19:48:11 +01:00
2020-02-09 19:29:43 +01:00
# Exherbo with Clang
- name : "Exherbo Linux with Clang"
os : linux
2020-02-09 19:48:11 +01:00
dist : bionic
group : travis_latest
2020-02-09 19:29:43 +01:00
cache :
directories :
- /var/db/paludis
env :
DOCKER="exherbo_ci:latest"
VARIANT="exherbo"
TOOL="build"
COMPILER_C="clang"
COMPILER_CXX="clang++"
# Ubuntu Linux
# Ubuntu 19.10 (Eoan Ermine) with GCC
- name : "Ubuntu 19.10 (Eoan Ermine) with GCC"
os : linux
cache :
directories :
- /var/cache/apt/
dist : bionic
group : travis_latest
env :
DOCKER="ubuntu:eoan"
VARIANT="ubuntu-19.10"
TOOL="build"
COMPILER_C="gcc"
COMPILER_CXX="g++"
REPOSITORY="https://github.com/RXT0112/Zernit.git"
2020-02-09 19:35:35 +01:00
PACKAGES="git build-essential"
2020-02-09 19:29:43 +01:00
# Ubuntu 19.10 (Eoan Ermine) with Clang
- name : "Ubuntu 19.10 (Eoan Ermine) with Clang"
os : linux
cache :
directories :
- /var/cache/apt/
dist : bionic
group : travis_latest
env :
DOCKER="ubuntu:eoan"
VARIANT="ubuntu-19.10"
TOOL="build"
COMPILER_C="clang"
COMPILER_CXX="clang++"
REPOSITORY="https://github.com/RXT0112/Zernit.git"
2020-02-09 19:35:35 +01:00
PACKAGES="git build-essential"
2020-02-09 19:29:43 +01:00
2020-02-09 18:24:40 +01:00
# Debian Linux
# Debian Testing
- name : "Debian Testing with GCC"
2020-02-06 04:32:56 +01:00
os : linux
dist : bionic
group : travis_latest
env :
2020-02-09 18:24:40 +01:00
DOCKER="debian:testing"
2020-02-09 18:26:56 +01:00
VARIANT="debian-testing"
2020-02-09 19:29:43 +01:00
TOOL="build"
2020-02-06 04:32:56 +01:00
COMPILER_C="gcc"
COMPILER_CXX="g++"
2020-02-09 17:45:47 +01:00
REPOSITORY="https://github.com/RXT0112/Zernit.git"
2020-02-09 19:16:46 +01:00
PACKAGES="rustc cargo git make pkg-config libssl-dev"
2020-02-09 18:24:40 +01:00
- name : "Debian Testing with Clang"
2020-02-06 04:32:56 +01:00
os : linux
dist : bionic
group : travis_latest
env :
2020-02-09 18:24:40 +01:00
DOCKER="debian:testing"
2020-02-09 18:26:56 +01:00
VARIANT="debian-testing"
2020-02-09 19:29:43 +01:00
TOOL="build"
2020-02-06 04:32:56 +01:00
COMPILER_C="clang"
COMPILER_CXX="clang++"
2020-02-09 17:45:47 +01:00
REPOSITORY="https://github.com/RXT0112/Zernit.git"
2020-02-09 19:16:46 +01:00
PACKAGES="rustc cargo git make pkg-config libssl-dev"
2020-02-09 18:06:35 +01:00
2020-02-09 19:29:43 +01:00
# Debian Sid
- name : "Debian Sid with GCC"
os : linux
dist : bionic
group : travis_latest
env :
DOCKER="debian:sid"
VARIANT="debian"
TOOL="build"
COMPILER_C="gcc"
COMPILER_CXX="g++"
REPOSITORY="https://github.com/RXT0112/Zernit.git"
2020-02-09 19:44:38 +01:00
PACKAGES="rustc cargo build-essentials"
2020-02-09 18:06:35 +01:00
2020-02-09 19:29:43 +01:00
- name : "Debian Sid with Clang"
os : linux
dist : bionic
group : travis_latest
env :
DOCKER="debian:sid"
VARIANT="debian"
TOOL="build"
COMPILER_C="clang"
COMPILER_CXX="clang++"
REPOSITORY="https://github.com/RXT0112/Zernit.git"
2020-02-09 19:44:38 +01:00
PACKAGES="rustc cargo build-essentials"
2020-02-09 18:06:35 +01:00
# # FreeBSD
# # FreeBSD 12.0-RELEASE
# - name: "FreeBSD 12.0-RELEASE with Clang"
# os: linux
# dist: bionic
# group: travis_latest
# env:
# QEMU="FreeBSD"
# VARIANT="12.0-RELEASE"
2020-02-09 19:29:43 +01:00
# TOOL="build"
2020-02-09 18:06:35 +01:00
# COMPILER_C="clang"
# COMPILER_CXX="clang++"
# - name: "FreeBSD 12.0-RELEASE with GCC"
# os: linux
# dist: bionic
# group: travis_latest
# env:
# QEMU="FreeBSD"
# VARIANT="12.0-RELEASE"
2020-02-09 19:29:43 +01:00
# TOOL="build"
2020-02-09 18:06:35 +01:00
# COMPILER_C="gcc"
# COMPILER_CXX="g++"
2020-02-09 19:29:43 +01:00
# FIXME: MacOS needs refactor of C programs to be compatible (https://travis-ci.org/Kreyrock/Kreyrock/jobs/620509927?utm_medium=notification&utm_source=github_status)
# MacOS X
## MacOS 10.14
- name : "MacOS 10.14, xcode11.2 with clang"
os : osx
cache :
- /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
osx_image : xcode11.2
compiler : clang
group : travis_latest
2020-02-09 19:44:38 +01:00
env :
TOOL="build"
2020-02-09 18:06:35 +01:00
2020-02-09 19:29:43 +01:00
- name : "MacOS 10.14, xcode11.2 with gcc"
os : osx
cache :
- /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
osx_image : xcode11.2
compiler : gcc
group : travis_latest
2020-02-09 19:44:38 +01:00
env :
TOOL="build"
2020-02-09 18:06:35 +01:00
2020-02-09 19:29:43 +01:00
## MacOS 10.14.4
- name : "MacOS 10.14.4, xcode10.3 with clang"
os : osx
cache :
- /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
osx_image : xcode10.3
compiler : clang
group : travis_latest
2020-02-09 19:44:38 +01:00
env :
TOOL="build"
2020-02-09 18:06:35 +01:00
2020-02-09 19:29:43 +01:00
- name : "MacOS 10.14.4, xcode10.3 with gcc"
os : osx
cache :
- /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
osx_image : xcode10.3
compiler : gcc
group : travis_latest
2020-02-09 19:44:38 +01:00
env :
TOOL="build"
2020-02-09 18:06:35 +01:00
2020-02-09 19:29:43 +01:00
## MacOS 10.13
- name : "MacOS 10.13, xcode9.4 with clang"
os : osx
cache :
- /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
osx_image : xcode9.4
compiler : clang
group : travis_latest
2020-02-09 19:44:38 +01:00
env :
TOOL="build"
2020-02-09 18:06:35 +01:00
2020-02-09 19:29:43 +01:00
- name : "MacOS 10.13, xcode9.4 with gcc"
os : osx
cache :
- /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
osx_image : xcode9.4
compiler : gcc
group : travis_latest
2020-02-09 19:44:38 +01:00
env :
TOOL="build"
2020-02-09 18:06:35 +01:00
2020-02-09 19:29:43 +01:00
# Others
# Default linux
- name : "Linux, default check"
os : linux
dist : bionic
group : travis_latest
env :
TOOL="check"
2020-02-06 04:32:56 +01:00
before-install :
- QA/travis-ci/before-install.sh
install :
- QA/travis-ci/install.sh
script :
2020-02-09 19:35:35 +01:00
- QA/travis-ci/test.sh
2020-02-09 18:58:46 +01:00
- QA/travis-ci/build.sh