image: vladyslavusenko/b_image:latest stages: - build - test - test_results - deploy compile: stage: build variables: CXX_MARCH: 'corei7-avx' before_script: - mkdir -p ccache - export CCACHE_BASEDIR=${PWD} - export CCACHE_DIR=${PWD}/ccache cache: key: bionic paths: - ccache/ script: - ./scripts/update_submodules.sh - mkdir build - cd build - cmake .. -DCMAKE_BUILD_TYPE=Release -DCXX_MARCH=${CXX_MARCH} -DCMAKE_INSTALL_PREFIX=/usr/ - make -j3 - make package - cd test/ - ctest -V - cd ../../ - mkdir deb_bionic - cp build/*.deb deb_bionic/ artifacts: paths: - deb_bionic/*.deb - scripts/eval_full/* expire_in: 1 week compile_16_04: stage: build variables: CXX_MARCH: 'corei7-avx' before_script: - mkdir -p ccache - export CCACHE_BASEDIR=${PWD} - export CCACHE_DIR=${PWD}/ccache cache: key: xenial paths: - ccache/ script: - ./scripts/update_submodules.sh - mkdir build - cd build - cmake .. -DCMAKE_BUILD_TYPE=Release -DCXX_MARCH=${CXX_MARCH} -DCMAKE_INSTALL_PREFIX=/usr/ - make -j3 - make package - cd test/ - ctest -V - cd ../../ - mkdir deb_xenial - cp build/*.deb deb_xenial/ artifacts: paths: - deb_xenial/*.deb expire_in: 1 week only: - master image: vladyslavusenko/b_image_xenial:latest eval_euroc: stage: test parallel: 10 tags: - euroc-eval variables: GIT_STRATEGY: none only: - master artifacts: paths: - scripts/eval_full/eval_results/* expire_in: 1 week script: - dpkg -i deb_bionic/*.deb - cd scripts/eval_full - ./run_evaluations.sh gen_results_euroc: stage: test_results variables: GIT_STRATEGY: none when: on_success only: - master artifacts: paths: - euroc_results.txt script: - cd scripts/eval_full - ./gen_results.py eval_results > euroc_results.txt - cat euroc_results.txt - mv euroc_results.txt ../../ deploy: stage: deploy before_script: - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh - chmod 700 ~/.ssh - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts variables: GIT_STRATEGY: none only: - master script: - scp deb_xenial/*.deb $REPOSITORY_URL/xenial/ - scp deb_bionic/*.deb $REPOSITORY_URL/bionic/