message: travis: add Linux builds for Ubuntu and Fedora
diff: @@ -29,6 +29,30 @@ matrix:
  - libjsoncpp-dev
  - libcurl4-openssl-dev
  - libtinyxml2-dev
  + - os: linux
  + name: "docker-ubuntu-1604"
  + services:
  + - docker
  + env:
  + - MATRIX_EVAL="BUILD_TARGET=deb-x64 && DOCKER_REPO=mavsdk/mavsdk-ubuntu-16.04"
  + - os: linux
  + name: "docker-ubuntu-1804"
  + services:
  + - docker
  + env:
  + - MATRIX_EVAL="BUILD_TARGET=deb-x64 && DOCKER_REPO=mavsdk/mavsdk-ubuntu-18.04"
  + - os: linux
  + name: "docker-fedora-29"
  + services:
  + - docker
  + env:
  + - MATRIX_EVAL="BUILD_TARGET=rpm-x64 && DOCKER_REPO=mavsdk/mavsdk-fedora-29"
  + - os: linux
  + name: "docker-fedora-30"
  + services:
  + - docker
  + env:
  + - MATRIX_EVAL="BUILD_TARGET=rpm-x64 && DOCKER_REPO=mavsdk/mavsdk-fedora-30"
  - os: linux
  name: "manylinux1-x64"
  services:
  @@ -96,6 +120,14 @@ script:
  cmake --build build -j 2;
  ./build/src/unit_tests_runner;
  fi
  +- if [[ "${BUILD_TARGET}" = "deb-x64" ]]; then
  + docker run -it -v $TRAVIS_BUILD_DIR:/home/user/MAVSDK:rw ${DOCKER_REPO} cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_BACKEND=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=./install -Bbuild/release -H.;
  + docker run -it -v $TRAVIS_BUILD_DIR:/home/user/MAVSDK:rw ${DOCKER_REPO} cmake --build build/release --target install -- -j2;
  + fi
  +- if [[ "${BUILD_TARGET}" = "rpm-x64" ]]; then
  + docker run -it -v $TRAVIS_BUILD_DIR:/home/user/MAVSDK:rw ${DOCKER_REPO} cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_BACKEND=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=./install -Bbuild/release -H.;
  + docker run -it -v $TRAVIS_BUILD_DIR:/home/user/MAVSDK:rw ${DOCKER_REPO} cmake --build build/release --target install -- -j2;
  + fi
  - if [[ "${BUILD_TARGET}" = "manylinux1-x64" ]]; then
  ./dockcross-manylinux1-x64 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/manylinux1-x64/install -DBUILD_BACKEND=ON -DBUILD_SHARED_LIBS=OFF -j 2 -Bbuild/manylinux1-x64 -H.;
  ./dockcross-manylinux1-x64 cmake --build build/manylinux1-x64 -j 2 --target install;
  