language: c
sudo: required
matrix:
  include:
    - os: linux
      compiler: gcc
      arch: amd64
      addons:
        apt:
          packages:
            - libtommath-dev
    - os: linux
      compiler: clang
      arch: amd64
      addons:
        apt:
          packages:
            - libtommath-dev
            - clang-3.9
    - os: linux
      compiler: gcc
      arch: arm64
      addons:
        apt:
          packages:
            - libtommath-dev
    - os: freebsd
      addons:
        pkg:
          packages:
            - sudo
            - gmake
            - libtommath
            - concurrencykit
    - os: osx
      image: xcode11.2
      addons:
        homebrew:
          packages:
            - libtommath
            - concurrencykit
notifications:
  email: false
before_install:
  - |
      if [[ "$(uname)" != "FreeBSD" && "$(uname)" != "Darwin" ]]; then
        sudo ln -s /usr/bin/make /usr/bin/gmake
      fi
  - |
      git clone https://github.com/concurrencykit/ck.git ${HOME}/ck
      cd ${HOME}/ck
      git checkout 0.6.0
      ./configure PREFIX=/usr
      gmake all
      sudo gmake install
      if [ "$(uname)" = "Linux" ]; then
        sudo ldconfig
      fi
  - |
      git clone https://github.com/justinethier/cyclone-bootstrap.git ${HOME}/cyclone-bootstrap
      cd ${HOME}/cyclone-bootstrap
      gmake
      sudo gmake install
script:
  - gmake
  - sudo gmake install
  - gmake test

language: c
sudo: required
matrix:
  include:
    - os: linux
      compiler: gcc
      arch: amd64
      addons:
        apt:
          packages:
            - libtommath-dev
    - os: linux
      compiler: clang
      arch: amd64
      addons:
        apt:
          packages:
            - libtommath-dev
            - clang-3.9
    - os: linux
      compiler: gcc
      arch: arm64
      addons:
        apt:
          packages:
            - libtommath-dev
    - os: freebsd
      addons:
        pkg:
          packages:
            - sudo
            - gmake
            - libtommath
            - concurrencykit
notifications:
  email: false
before_install:
  - |
      if [ "$(uname)" != "FreeBSD" ]; then
        sudo ln -s /usr/bin/make /usr/bin/gmake
      fi
  - |
      git clone https://github.com/concurrencykit/ck.git ${HOME}/ck
      cd ${HOME}/ck
      git checkout 0.6.0
      ./configure PREFIX=/usr
      gmake all
      sudo gmake install
      if [ "$(uname)" = "Linux" ]; then
        sudo ldconfig
      fi
  - |
      git clone https://github.com/justinethier/cyclone-bootstrap.git ${HOME}/cyclone-bootstrap
      cd ${HOME}/cyclone-bootstrap
      gmake
      sudo gmake install
script:
  - gmake
  - sudo gmake install
  - gmake test

Remove OSX; let Github CI build those instead
Remove OSX; let Github CI build those instead
