machine:
  services:
    - docker

checkout:
  post:
    # workaround for known git bug where attempting to fetch a missing commit fails early on the first try
    - git submodule update --init || true
    - git submodule sync --recursive
    - git submodule update --init --recursive

dependencies:
  pre:
    - docker pull px4io/px4-dev-nuttx-gcc4.9

test:
  override:
    - docker run --rm -v `pwd`:`pwd`:rw -e CI=true -w=`pwd` --user=$UID -it px4io/px4-dev-nuttx-gcc4.9 /bin/bash -c "make quick_check"

general:
  artifacts:
    - "build_px4fmu-v2_default/parameters.xml"
    - "build_px4fmu-v2_default/airframes.xml"
    - "build_.*/src/firmware/nuttx/.*.px4"

