fix: controller executable build in pipeline
This commit is contained in:
		
							parent
							
								
									ed0d7956aa
								
							
						
					
					
						commit
						ea55dc973b
					
				
					 1 changed files with 20 additions and 4 deletions
				
			
		
							
								
								
									
										24
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										24
									
								
								.drone.yml
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,18 +1,34 @@
 | 
			
		|||
kind: pipeline
 | 
			
		||||
name: default
 | 
			
		||||
 | 
			
		||||
workspace:
 | 
			
		||||
  path: /drone/src
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
- name: download
 | 
			
		||||
  image: plugins/download
 | 
			
		||||
  settings:
 | 
			
		||||
    source: http://vmi366681.contaboserver.net:6423/archive/emgauwa-controller-testing/6/controller
 | 
			
		||||
    destination: controller
 | 
			
		||||
- name: test
 | 
			
		||||
    source: http://vmi366681.contaboserver.net:6423/archive/emgauwa-controller-testing/6/emgauwa-controller-testing.tar.gz
 | 
			
		||||
    destination: emgauwa-controller-testing.tar.gz
 | 
			
		||||
 | 
			
		||||
- name: prepare-controller
 | 
			
		||||
  image: serguzim/emgauwa-builder
 | 
			
		||||
  pull: always
 | 
			
		||||
  commands:
 | 
			
		||||
    - tar xzf emgauwa-controller-testing.tar.gz
 | 
			
		||||
    - cd emgauwa-controller-testing
 | 
			
		||||
    - mkdir build
 | 
			
		||||
    - cd build
 | 
			
		||||
    - cmake -DWIRING_PI_DEBUG=on ..
 | 
			
		||||
    - make
 | 
			
		||||
  
 | 
			
		||||
- name: test
 | 
			
		||||
  image: serguzim/emgauwa-builder
 | 
			
		||||
  pull: always
 | 
			
		||||
  environment:
 | 
			
		||||
    EMGAUWA_CONTROLLER_EXE: /drone/src/emgauwa-controller-testing/build/controller
 | 
			
		||||
  commands:
 | 
			
		||||
  - chmod +x controller
 | 
			
		||||
  - export EMGAUWA_CONTROLLER_EXE=/drone/src/controller
 | 
			
		||||
  - mkdir build
 | 
			
		||||
  - cd build
 | 
			
		||||
  - cmake ..
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue