cicd
This commit is contained in:
		
							parent
							
								
									0de981636c
								
							
						
					
					
						commit
						f9864be1f4
					
				
					 1 changed files with 15 additions and 1 deletions
				
			
		
							
								
								
									
										16
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								.drone.yml
									
										
									
									
									
								
							| 
						 | 
					@ -11,6 +11,10 @@ volumes:
 | 
				
			||||||
  host:
 | 
					  host:
 | 
				
			||||||
    path: /var/run/docker.sock
 | 
					    path: /var/run/docker.sock
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					- name: py
 | 
				
			||||||
 | 
					  temp: {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  - name: docker
 | 
					  - name: docker
 | 
				
			||||||
    image: docker:dind
 | 
					    image: docker:dind
 | 
				
			||||||
| 
						 | 
					@ -40,7 +44,7 @@ steps:
 | 
				
			||||||
  - name: setup_conan
 | 
					  - name: setup_conan
 | 
				
			||||||
    image: ubuntu_amd64:latest
 | 
					    image: ubuntu_amd64:latest
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
    - name: python_env
 | 
					    - name: py
 | 
				
			||||||
      path: /opt/venv/
 | 
					      path: /opt/venv/
 | 
				
			||||||
    pull: if-not-exists
 | 
					    pull: if-not-exists
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
| 
						 | 
					@ -52,6 +56,9 @@ steps:
 | 
				
			||||||
  - name: echo_info
 | 
					  - name: echo_info
 | 
				
			||||||
    image: ubuntu_amd64:latest
 | 
					    image: ubuntu_amd64:latest
 | 
				
			||||||
    pull: if-not-exists
 | 
					    pull: if-not-exists
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					    - name: py
 | 
				
			||||||
 | 
					      path: /opt/venv/
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - . /opt/venv/bin/activate
 | 
					      - . /opt/venv/bin/activate
 | 
				
			||||||
      - pip --version
 | 
					      - pip --version
 | 
				
			||||||
| 
						 | 
					@ -67,6 +74,9 @@ steps:
 | 
				
			||||||
  - name: build_gcc
 | 
					  - name: build_gcc
 | 
				
			||||||
    image: ubuntu_amd64:latest
 | 
					    image: ubuntu_amd64:latest
 | 
				
			||||||
    pull: if-not-exists
 | 
					    pull: if-not-exists
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					    - name: py
 | 
				
			||||||
 | 
					      path: /opt/venv/
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - rm -rv ./build
 | 
					      - rm -rv ./build
 | 
				
			||||||
      - export CC=$(which gcc)
 | 
					      - export CC=$(which gcc)
 | 
				
			||||||
| 
						 | 
					@ -82,6 +92,9 @@ steps:
 | 
				
			||||||
  - name: build_clang
 | 
					  - name: build_clang
 | 
				
			||||||
    image: ubuntu_amd64:latest
 | 
					    image: ubuntu_amd64:latest
 | 
				
			||||||
    pull: if-not-exists
 | 
					    pull: if-not-exists
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					    - name: py
 | 
				
			||||||
 | 
					      path: /opt/venv/
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - rm -rv ./build
 | 
					      - rm -rv ./build
 | 
				
			||||||
      - export CC=$(which clang)
 | 
					      - export CC=$(which clang)
 | 
				
			||||||
| 
						 | 
					@ -105,6 +118,7 @@ steps:
 | 
				
			||||||
    pull: if-not-exists
 | 
					    pull: if-not-exists
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - echp "[TODO] Implement tests"
 | 
					      - echp "[TODO] Implement tests"
 | 
				
			||||||
 | 
					      - ./build/Release/modules/light/light
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: report_coverage
 | 
					  - name: report_coverage
 | 
				
			||||||
    image: ubuntu_amd64:latest
 | 
					    image: ubuntu_amd64:latest
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue