aboutsummaryrefslogblamecommitdiffstats
path: root/.travis.yml
blob: 27140574e16684e4a08756643b6bd2ebc5d68ea1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









              

          
                            
                          

                                                
                          
                           
             

                         

                         








                                                                          
       

                                                                          
                                                                                                                          
        
                                                                      








                                                                                                                       
language: c

sudo: required
dist: trusty

os: linux

services:
  - docker

matrix:
  include:
    - env: DISTRO=Ubuntu1710
    - env: DISTRO=Fedora27
    - env: DISTRO=Fedora27 CI_BUILD_TYPE=wayland
    - env: DISTRO=Fedora27 CI_BUILD_TYPE=misc
    - env: DISTRO=Debian91
    - env: DISTRO=Archlinux
    - os: osx
      osx_image: xcode8.3

# Xcode 8.3.3, OS X 10.12

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-deps.sh ; fi

before_script:
  - |
      if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
        docker pull stefanschmidt1/ci-support-files:$DISTRO
      fi

script:
  - |
      if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
        docker run -v `pwd`:/src -w /src stefanschmidt1/ci-support-files:$DISTRO /src/.ci/ci-linux-build.sh $CI_BUILD_TYPE
      fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-build.sh ; fi

after_success:
  - |
      if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
        docker login -u stefanschmidt1 -p "$DOCKER_PASSWORD"
        docker tag stefanschmidt1/ci-support-files:$DISTRO stefanschmidt1/ci-support-files:$DISTRO-$TRAVIS_BUILD_NUMBER
        docker push stefanschmidt1/ci-support-files:$DISTRO
        docker push stefanschmidt1/ci-support-files:$DISTRO-$TRAVIS_BUILD_NUMBER
      fi