-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
27 lines (23 loc) · 1.7 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
os: linux
dist: bionic
language: cpp
services:
- docker
jobs:
include:
- stage: Docker
if: branch = master
script:
- sudo apt-get update
- docker build -t blindspot-incluit .
- docker run --name blindspotcont -t -d --volume="$HOME/.Xauthority:/root/.Xauthority:rw" blindspot-incluit
- docker exec blindspotcont bash -c 'source ${INTEL_OPENVINO_DIR}/bin/setupvars.sh && cd /app/BlindspotAssistance/build && curl -s -L https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip -o buildwrapper.zip && unzip -qq buildwrapper.zip && export PATH=$PATH:build-wrapper-linux-x86/ && build-wrapper-linux-x86-64 --out-dir bw-output make clean all'
- docker exec blindspotcont bash -c 'cd /app/BlindspotAssistance/build && curl -s -L https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.2.0.1873-linux.zip -o sonarscanner.zip && unzip -qq sonarscanner.zip && export PATH=$PATH:sonar-scanner-4.2.0.1873-linux/bin/ && apt-get install -y openjdk-8-jre && sonar-scanner -Dsonar.organization=incluit -Dsonar.projectKey=incluit_OpenVino-Blindspot-Assistance -Dsonar.sources=. -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectBaseDir=../src -Dproject.home=../src -Dsonar.cfamily.build-wrapper-output=bw-output -Dsonar.login=166e8c3490138565f7b424de56b7dd6abe97beec'
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker tag blindspot-incluit openvinoincluit/blindspot-openvino:latest
- docker push openvinoincluit/blindspot-openvino:latest
- stage: Validation
if: branch = master
script:
- docker pull openvinoincluit/blindspot-openvino:latest
- docker images --digests