language: c
dist: bionic

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/2abb0e79562ccc0d19b8
    on_success: always  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: never     # options: [always|never|change] default: always

before_install:
  - sudo apt update -qq
  - curl -1sLf 'https://dl.cloudsmith.io/public/openmama/openmama/cfg/setup/bash.deb.sh' | sudo bash
  - sudo apt install -y openmama libgtest-dev

script:
 - git clone https://github.com/OpenMAMA/OpenMAMA.git om_src
 - cmake -DOPENMAMA_SRC=$(pwd)/om_src -DCMAKE_INSTALL_PREFIX=$(pwd) .
 - make install
 - find / -type f -name "libgtest*"
 - ./bin/unittests
 - ./bin/UnitTestMamaMsgC -m qpid -p omnmmsg -i O
 - ./bin/UnitTestMamaPayloadC -m qpid -p omnmmsg -i O --gtest_filter=-PayloadSubMsgTests.UpdateSubMsg

language: c
dist: bionic

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/2abb0e79562ccc0d19b8
    on_success: always  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: never     # options: [always|never|change] default: always

before_install:
  - sudo apt update -qq
  - curl -1sLf 'https://dl.cloudsmith.io/public/openmama/openmama/cfg/setup/bash.deb.sh' | sudo bash
  - sudo apt install -y openmama libgtest-dev

script:
 - (mkdir gtest_bld && cd gtest_bld && cmake /usr/src/googletest/googletest -DCMAKE_INSTALL_PREFIX=/usr && make install)
 - git clone https://github.com/OpenMAMA/OpenMAMA.git om_src
 - cmake -DOPENMAMA_SRC=$(pwd)/om_src -DCMAKE_INSTALL_PREFIX=$(pwd) .
 - make install
 - find / -type f -name "libgtest*"
 - ./bin/unittests
 - ./bin/UnitTestMamaMsgC -m qpid -p omnmmsg -i O
 - ./bin/UnitTestMamaPayloadC -m qpid -p omnmmsg -i O --gtest_filter=-PayloadSubMsgTests.UpdateSubMsg

Add gtest build for ubuntu since it doesn't come with libs
Add gtest build for ubuntu since it doesn't come with libs
