general:
  branches:
    ignore:
      - gh-pages
      - android-wrapper
dependencies:
  cache_directories:
    - "~/.local/cache"
  pre:
    - >-
      if [[ ! -d "$HOME/.local/cache" ]]; then \
        mkdir "$HOME/.local/cache" && cd "$HOME/.local/cache" \
        && mkdir "debs" && cd "debs" \
        && sudo add-apt-repository -y ppa:george-edison55/precise-backports \
        && sudo apt-get update \
        && sudo apt-get --print-uris --yes -d --reinstall install \
            cmake liblua5.2-dev \
            | grep "http://" |  awk '{print$1}' | xargs -I'{}' echo {} | tee files.list \
        && wget --input-file files.list \
      ; fi
    - cd "$HOME/.local/cache/debs" && sudo dpkg --force-all -i *.deb
  override:
    - mkdir build; cd build; cmake .. -DSIMULATION=ON -DBUILD_EXAMPLES=ON; make spooky_tests
test:
  override:
    - cd tests/bin; ./spooky_tests --gtest_output=xml:$CIRCLE_TEST_REPORTS/gtest/test-results.xml
checkout:
  post:
    - git submodule init
    - git submodule update
general:
  branches:
    ignore:
      - gh-pages
      - android-wrapper
dependencies:
  cache_directories:
    - "~/.local/cache"
  pre:
    - >-
      if [[ ! -d "$HOME/.local/cache" ]]; then \
        mkdir "$HOME/.local/cache" && cd "$HOME/.local/cache" \
        && mkdir "debs" && cd "debs" \
        && sudo add-apt-repository -y ppa:george-edison55/precise-backports \
        && sudo apt-get update \
        && sudo apt-get --print-uris --yes -d --reinstall install \
            cmake liblua5.2-dev \
            | grep "http://" |  awk '{print$1}' | xargs -I'{}' echo {} | tee files.list \
        && wget --input-file files.list \
      ; fi
    - cd "$HOME/.local/cache/debs" && sudo dpkg --force-all -i *.deb
  override:
    - mkdir build; cd build; cmake .. -DSIMULATION=ON -DBUILD_EXAMPLES=ON; make spooky_tests
test:
  override:
    - cd tests/bin; ./spooky_tests --gtest_output=xml:$CIRCLE_TEST_REPORTS/gtest/test-results.xml
checkout:
  post:
    - git submodule init
    - git submodule update --remote
Make CircleCI always download newest submodules
Make CircleCI always download newest submodules
