summaryrefslogblamecommitdiffstats
path: root/.travis.yml
blob: a2a518751107a0000903df92518cc506863d1567 (plain) (tree)
1
2
3
4
5
6
7
8
9
             
             
 

                      

            
                                                              
 
     
          
                                                                                                              

                                  
                          

                                                       
                   
                                            
 

                                
                          

                                                       
                 
                                          
 

                                 
                                


                                                                                                            
                   
 

                               
                                
                 
 
                                                     
                   






                                                                                                            
 

                             
                                
                 
 

                                                                  
                        
 



                      

         
            
language: cpp
cache: ccache

# Use Linux by default
os: linux
dist: bionic

# TODO: add ARM64, PPC, IBM builds when we find CMake for them

jobs:
  include:
    # OSX workers are slower to start up.  Having these first in the build matrix makes travis faster overall.
    - name: "AppleClang - Release"
      os: osx
      osx_image: xcode11.3
      before_install:
        - HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
      env: &Release
        - TRAVIS_CUBERITE_BUILD_TYPE=Release

    - name: "AppleClang - Debug"
      os: osx
      osx_image: xcode11.3
      before_install:
        - HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
      env: &Debug
        - TRAVIS_CUBERITE_BUILD_TYPE=Debug

    - name: "Clang 7.0 - Release"
      compiler: clang
      before_install: &use-cmake
        - wget --output-document=${HOME}/CMake http://cmake.org/files/v3.17/cmake-3.17.2-Linux-x86_64.tar.gz
        - tar --extract --one-top-level=${HOME}/SeeMake --strip-components 1 --file ${HOME}/CMake
        - export PATH=${HOME}/SeeMake/bin/:${PATH}
      env: *Release

    - name: "Clang 7.0 - Debug"
      compiler: clang
      before_install: *use-cmake
      env: *Debug

    - name: "GCC 7.4 - Release, CMake 3.12, No Unity"
      compiler: gcc
      before_install:
        - wget --output-document=${HOME}/CMake http://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.tar.gz
        - tar --extract --one-top-level=${HOME}/SeeMake --strip-components 1 --file ${HOME}/CMake
        - export PATH=${HOME}/SeeMake/bin/:${PATH}
      env:
        - TRAVIS_CUBERITE_BUILD_TYPE=Release
        - TRAVIS_CUBERITE_UNITY_BUILDS=No

    - name: "GCC 7.4 - Debug"
      compiler: gcc
      before_install: *use-cmake
      env: *Debug

before_script:
  - export PATH=$(echo "$PATH" | sed -e 's/:\/usr\/lib\/ccache//')
script: ./travisbuild.sh

notifications:
  email:
    on_success: change
    on_failure: always
branches:
  only:
    - master