-sudo: required
language: c
-install: true
-script: make all
+cache: ccache
+branches:
+ except:
+ - travis
matrix:
- include:
- - compiler: gcc
- env:
- - COMPILER=gcc-4.9
- - CROSS_COMPILE=x86_64-linux-gnu-
- dist: xenial
- addons:
- apt:
- sources:
- - ubuntu-toolchain-r-test
- packages:
- - gcc-4.9
- - binutils
- before_install:
- - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- - sudo apt-get update -qq
- - sudo apt-get install gcc-4.9 binutils libpopt-dev pkg-config
- - test -n $CC && unset CC
- - compiler: gcc
- env:
- - COMPILER=gcc-5
- - CROSS_COMPILE=x86_64-linux-gnu-
- dist: xenial
- addons:
- apt:
- sources:
- - ubuntu-toolchain-r-test
- packages:
- - gcc-5
- - binutils
- before_install:
- - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- - sudo apt-get update -qq
- - sudo apt-get install gcc-5 binutils libpopt-dev pkg-config
- - test -n $CC && unset CC
- - compiler: gcc
- env:
- - COMPILER=gcc-6
- - CROSS_COMPILE=x86_64-linux-gnu-
- dist: xenial
- addons:
- apt:
- sources:
- - ubuntu-toolchain-r-test
- packages:
- - gcc-6
- - binutils
- before_install:
- - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- - sudo apt-get update -qq
- - sudo apt-get install gcc-6 binutils libpopt-dev pkg-config
- - test -n $CC && unset CC
-# - compiler: gcc
-# env:
-# - COMPILER=gcc-7
-# - CROSS_COMPILE=x86_64-linux-gnu-
-# dist: zesty
-# addons:
-# apt:
-# sources:
-# - ubuntu-toolchain-r-test
-# packages:
-# - gcc-7
-# - binutils
-# before_install:
-# - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
-# - sudo apt-get update -qq
-# - sudo apt-get install gcc-7 binutils libpopt-dev pkg-config
-# - test -n $CC && unset CC
-# - compiler: clang
-# env: COMPILER=clang-3.6
-# before_install:
-# - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
-# - sudo add-apt-repository ppa:jonathonf/llvm -y
-# - sudo apt-get update -qq
-# - sudo apt-get install clang-3.6 binutils libpopt-dev pkg-config
-# - compiler: clang
-# env: COMPILER=clang-3.7
-# before_install:
-# - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
-# - sudo add-apt-repository ppa:jonathonf/llvm -y
-# - sudo apt-get update -qq
-# - sudo apt-get install clang-3.7 binutils libpopt-dev pkg-config
-# - compiler: clang
-# env: COMPILER=clang-3.8
-# before_install:
-# - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
-# - sudo add-apt-repository ppa:jonathonf/llvm -y
-# - sudo apt-get update -qq
-# - sudo apt-get install clang-3.8 binutils libpopt-dev pkg-config
-# - compiler: clang
-# env: COMPILER=clang-3.9
-# before_install:
-# - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
-# - sudo add-apt-repository ppa:jonathonf/llvm -y
-# - sudo apt-get update -qq
-# - sudo apt-get install clang-3.9 binutils libpopt-dev pkg-config
-# - compiler: clang
-# env: COMPILER=clang-4.0
-# before_install:
-# - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
-# - sudo add-apt-repository ppa:jonathonf/llvm -y
-# - sudo apt-get update -qq
-# - sudo apt-get install clang-4.0 binutils libpopt-dev pkg-config
+ include:
+ - os: linux
+ dist: trusty
+ services: docker
+
+before_install:
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker pull vathpela/efi-ci-rawhide:v0 ; fi
+
+script:
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run vathpela/efi-ci-rawhide:v0 /bin/sh -c "cd /root/ && ./build.sh --branch \"$TRAVIS_BRANCH\" --commit \"$TRAVIS_COMMIT\" --commit-range \"$TRAVIS_COMMIT_RANGE\" --event-type \"$TRAVIS_EVENT_TYPE\" --pull-request \"$TRAVIS_PULL_REQUEST\" --pr-branch \"$TRAVIS_PULL_REQUEST_BRANCH\" --pr-sha \"$TRAVIS_PULL_REQUEST_SHA\" --remote \"$TRAVIS_PULL_REQUEST_SLUG\" --repo \"$TRAVIS_REPO_SLUG\" --test-subject efivar" ; fi