message: travis: don't install and create docs without sudo
diff: @@ -12,7 +12,6 @@ matrix:
  addons:
  apt:
  packages:
  - - doxygen
  - libtinyxml2-dev
  - os: linux
  dist: trusty
  @@ -29,7 +28,6 @@ matrix:
  packages:
  - gcc-5
  - g++-5
  - - doxygen
  - libtinyxml2-dev
  - os: linux
  dist: trusty
  @@ -46,7 +44,6 @@ matrix:
  packages:
  - gcc-6
  - g++-6
  - - doxygen
  - libtinyxml2-dev
  - os: linux
  sudo: required
  @@ -76,23 +73,13 @@ install:
  script:
  - if [[ "${BUILD_TARGET}" = "gcc_build" ]]; then
  - make INSTALL_PREFIX=/usr EXTERNAL_DIR=external_example;
  - make install;
  - make docs;
  - make run_unit_tests;
  - (cd example/takeoff_land && mkdir build && cd build && cmake .. && make);
  - (cd example/fly_mission && mkdir build && cd build && cmake .. && make);
  - (cd example/offboard_velocity && mkdir build && cd build && cmake .. && make);
  + make BUILD_TYPE=Debug run_unit_tests -j4;
  make clean;
  - make INSTALL_PREFIX=/usr BUILD_TYPE=Release;
  - make install;
  - make run_unit_tests;
  + make BUILD_TYPE=Release run_unit_tests -j4;
  fi
  - if [[ "${BUILD_TARGET}" = "coverage_build" ]]; then
  - make BUILD_TYPE=Coverage;
  - make run_unit_tests;
  + make BUILD_TYPE=Coverage run_unit_tests -j4;
  fi
  -
  - if [[ "${BUILD_TARGET}" = "docker_build" ]]; then
  docker run -it -v $TRAVIS_BUILD_DIR:/home/docker1000/src/DroneCore:rw dronecore/dronecore make;
  docker run -it -v $TRAVIS_BUILD_DIR:/home/docker1000/src/DroneCore:rw dronecore/dronecore make default install;
  