Skip to content

Commit

Permalink
Pipeline refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Sosa committed Jul 16, 2020
1 parent bea7f91 commit 52ef282
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ build/
*.swp
*.vscode/
models/
.idea
29 changes: 17 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@ sudo: required
services:
- docker

before_install:
- sudo apt-get update
jobs:
include:
- stage: Install
script: sudo apt-get update

before_script:
- docker pull openvinoincluit/openvino:latest || true
script:
- docker run --name openvinocont -t -d openvinoincluit/openvino:latest
- docker exec openvinocont git clone https://github.com/incluit/OpenVino-Driver-Behaviour
- docker exec openvinocont bash -c 'source /opt/intel/openvino/bin/setupvars.sh && cd /app/OpenVino-Driver-Behaviour && mkdir build && cd build && source /app/OpenVino-Driver-Behaviour/scripts/setupenv.sh && cmake .. && make'
- docker exec openvinocont bash -c 'cd /app/OpenVino-Driver-Behaviour/build && build-wrapper-linux-x86-64 --out-dir bw-output make clean all'
- docker exec openvinocont bash -c 'cd /app/OpenVino-Driver-Behaviour/build &&sonar-scanner -Dsonar.projectKey=incluit_OpenVino-Driver-Behaviour -Dsonar.organization=incluit -Dsonar.sources=. -Dsonar.cfamily.build-wrapper-output=bw-output -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectBaseDir=../src -Dproject.home=../src -Dsonar.login=58310463a5a3250d402fff5007a5df2e228d46e9'
- stage: Docker
script:
- docker run --name openvinocont -t -d openvinoincluit/openvino:latest
- docker exec openvinocont git clone https://github.com/incluit/OpenVino-Driver-Behaviour
- docker exec openvinocont bash -c 'source /opt/intel/openvino/bin/setupvars.sh && cd /app/OpenVino-Driver-Behaviour && mkdir build && cd build && source /app/OpenVino-Driver-Behaviour/scripts/setupenv.sh && cmake .. && make'
- docker exec openvinocont bash -c 'cd /app/OpenVino-Driver-Behaviour/build && build-wrapper-linux-x86-64 --out-dir bw-output make clean all'
- docker exec openvinocont bash -c 'cd /app/OpenVino-Driver-Behaviour/build &&sonar-scanner -Dsonar.projectKey=incluit_OpenVino-Driver-Behaviour -Dsonar.organization=incluit -Dsonar.sources=. -Dsonar.cfamily.build-wrapper-output=bw-output -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectBaseDir=../src -Dproject.home=../src -Dsonar.login=58310463a5a3250d402fff5007a5df2e228d46e9'
- docker ps
- docker images
- docker system prune -a -f

after_script:
- docker images
- stage: Validation
script:
- echo 'The Pipeline was validated!!!!'

0 comments on commit 52ef282

Please sign in to comment.