cicd: add workspace
This commit is contained in:
		
							parent
							
								
									cdd7626b7b
								
							
						
					
					
						commit
						61b365bae3
					
				
					 1 changed files with 3 additions and 22 deletions
				
			
		
							
								
								
									
										25
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										25
									
								
								.drone.yml
									
										
									
									
									
								
							| 
						 | 
					@ -1,15 +1,7 @@
 | 
				
			||||||
volumes:
 | 
					 | 
				
			||||||
  - name: apt_cache
 | 
					 | 
				
			||||||
    temp: {}
 | 
					 | 
				
			||||||
  - name: shared_data
 | 
					 | 
				
			||||||
    temp: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
  - &install_dependencies
 | 
					  - &install_dependencies
 | 
				
			||||||
    name: install_dependencies
 | 
					    name: install_dependencies
 | 
				
			||||||
    image: ubuntu:latest
 | 
					    image: ubuntu:latest
 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - shared_data:/opt/data
 | 
					 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - apt update
 | 
					      - apt update
 | 
				
			||||||
      - apt-get install -y build-essential cmake clang clang-tidy gcc g++ python3 python3-pip python3.12-venv
 | 
					      - apt-get install -y build-essential cmake clang clang-tidy gcc g++ python3 python3-pip python3.12-venv
 | 
				
			||||||
| 
						 | 
					@ -17,8 +9,6 @@ steps:
 | 
				
			||||||
  - &setup_conan
 | 
					  - &setup_conan
 | 
				
			||||||
    name: setup_conan
 | 
					    name: setup_conan
 | 
				
			||||||
    image: ubuntu:latest
 | 
					    image: ubuntu:latest
 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - shared_data:/opt/data
 | 
					 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      CONAN_REVISIONS_ENABLED: "1"
 | 
					      CONAN_REVISIONS_ENABLED: "1"
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
| 
						 | 
					@ -29,8 +19,6 @@ steps:
 | 
				
			||||||
  - &echo_info
 | 
					  - &echo_info
 | 
				
			||||||
    name: echo_info
 | 
					    name: echo_info
 | 
				
			||||||
    image: ubuntu:latest
 | 
					    image: ubuntu:latest
 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - shared_data:/opt/data
 | 
					 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - pip --version
 | 
					      - pip --version
 | 
				
			||||||
      - python --version
 | 
					      - python --version
 | 
				
			||||||
| 
						 | 
					@ -45,8 +33,6 @@ steps:
 | 
				
			||||||
  - &build_gcc
 | 
					  - &build_gcc
 | 
				
			||||||
    name: build_gcc
 | 
					    name: build_gcc
 | 
				
			||||||
    image: ubuntu:latest
 | 
					    image: ubuntu:latest
 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - shared_data:/opt/data
 | 
					 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - rm -rv ./build
 | 
					      - rm -rv ./build
 | 
				
			||||||
      - export CC=$(which gcc)
 | 
					      - export CC=$(which gcc)
 | 
				
			||||||
| 
						 | 
					@ -62,8 +48,6 @@ steps:
 | 
				
			||||||
  - &build_clang
 | 
					  - &build_clang
 | 
				
			||||||
    name: build_clang
 | 
					    name: build_clang
 | 
				
			||||||
    image: ubuntu:latest
 | 
					    image: ubuntu:latest
 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - shared_data:/opt/data
 | 
					 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - rm -rv ./build
 | 
					      - rm -rv ./build
 | 
				
			||||||
      - export CC=$(which clang)
 | 
					      - export CC=$(which clang)
 | 
				
			||||||
| 
						 | 
					@ -79,24 +63,18 @@ steps:
 | 
				
			||||||
  - &static_analysis
 | 
					  - &static_analysis
 | 
				
			||||||
    name: static_analysis
 | 
					    name: static_analysis
 | 
				
			||||||
    image: ubuntu:latest
 | 
					    image: ubuntu:latest
 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - shared_data:/opt/data
 | 
					 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - echo "[TODO] Implement static analysis"
 | 
					      - echo "[TODO] Implement static analysis"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - &run_tests
 | 
					  - &run_tests
 | 
				
			||||||
    name: run_tests
 | 
					    name: run_tests
 | 
				
			||||||
    image: ubuntu:latest
 | 
					    image: ubuntu:latest
 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - shared_data:/opt/data
 | 
					 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - echp "[TODO] Implement tests"
 | 
					      - echp "[TODO] Implement tests"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - &report_coverage
 | 
					  - &report_coverage
 | 
				
			||||||
    name: report_coverage
 | 
					    name: report_coverage
 | 
				
			||||||
    image: ubuntu:latest
 | 
					    image: ubuntu:latest
 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - shared_data:/opt/data
 | 
					 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - echp "[TODO] Implement coverage report"
 | 
					      - echp "[TODO] Implement coverage report"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -118,3 +96,6 @@ steps:
 | 
				
			||||||
  - *report_coverage
 | 
					  - *report_coverage
 | 
				
			||||||
  - *run_tests
 | 
					  - *run_tests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					workspace:
 | 
				
			||||||
 | 
					  path: /opt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue