language: c

matrix:
  include:
    - name: "linux-amd64-gcc-9"
      os: linux
      dist: bionic
      arch: amd64
      compiler: gcc-9
      env:
        - CXX="g++-9"
        - CFLAGS="-O2"
        - CXXFLAGS="-O2"
        - PKG_CC="gcc-9 g++-9"
    - name: "linux-amd64-gcc-10"
      os: linux
      dist: bionic
      arch: amd64
      compiler: gcc-10
      env:
        - CXX="g++-10"
        - CFLAGS="-O2"
        - CXXFLAGS="-O2"
        - PKG_CC="gcc-10 g++-10"
    - name: "linux-amd64-gcc-11"
      os: linux
      dist: focal
      arch: amd64
      compiler: gcc-11
      env:
        - CXX="g++-11"
        - CFLAGS="-O2 -Wno-error=array-bounds"
        - CXXFLAGS="-O2 -Wno-error=array-bounds"
        - PKG_CC="gcc-11 g++-11"

before_install:
  - sudo add-apt-repository universe
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get update
  - travis_wait 45 sudo apt-get -y install ${PKG_CC} doxygen graphviz

script:
  - mkdir $(pwd)/install
  - ./configure $CONFIGURE_OPTS --prefix=$(pwd)/install
  - make -j $(nproc)
  - make install
  - make -j $(nproc) check

Add tests based on Travis CI
Add tests based on Travis CI

Start testing on amd64.
Add more architectures later as failure in tests are dealt with.

Signed-off-by: Tulio Magno Quites Machado Filho <0e1b3d0765ee75ed64fa2e34822e4949a70a1429@linux.ibm.com>
