ci: major refactors & add msvc check #8
					 1 changed files with 24 additions and 9 deletions
				
			
		
							
								
								
									
										33
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										33
									
								
								.drone.yml
									
										
									
									
									
								
							| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
type: exec
 | 
					type: exec
 | 
				
			||||||
name: build msvc amd64
 | 
					name: amd64_msvc — tests
 | 
				
			||||||
trigger:
 | 
					trigger:
 | 
				
			||||||
  branch:
 | 
					  branch:
 | 
				
			||||||
  - main
 | 
					  - main
 | 
				
			||||||
| 
						 | 
					@ -10,22 +10,37 @@ platform:
 | 
				
			||||||
  arch: amd64
 | 
					  arch: amd64
 | 
				
			||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
- name: greeting
 | 
					- name: tests
 | 
				
			||||||
  shell: powershell
 | 
					  shell: powershell
 | 
				
			||||||
  commands:
 | 
					  commands:
 | 
				
			||||||
    - conan profile detect
 | 
					    - | 
 | 
				
			||||||
    - conan build . -s compiler.cppstd=20 -s build_type=Release
 | 
					      conan profile detect
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      conan build . -s compiler.cppstd=20 -s build_type=Release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      $tests = Get-ChildItem -Path "./build" -Recurse -File | Where-Object {
 | 
				
			||||||
 | 
					          $_.Name -like "*_tests.exe"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      foreach ($test in $tests) {
 | 
				
			||||||
 | 
					          Write-Host "Running $($test.FullName)"
 | 
				
			||||||
 | 
					          & $test.FullName
 | 
				
			||||||
 | 
					          if ($LASTEXITCODE -ne 0) {
 | 
				
			||||||
 | 
					            Write-Error "Test $($test.Name) failed! T_T"
 | 
				
			||||||
 | 
					              exit $LASTEXITCODE
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
type: docker
 | 
					type: docker
 | 
				
			||||||
name: unit tests
 | 
					name: amd64_gcc — tests
 | 
				
			||||||
trigger:
 | 
					trigger:
 | 
				
			||||||
  branch:
 | 
					  branch:
 | 
				
			||||||
  - main
 | 
					  - main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
- name: unit tests
 | 
					- name: tests
 | 
				
			||||||
  image: unit_tests:latest
 | 
					  image: unit_tests:latest
 | 
				
			||||||
  pull: if-not-exists
 | 
					  pull: if-not-exists
 | 
				
			||||||
  commands:
 | 
					  commands:
 | 
				
			||||||
| 
						 | 
					@ -48,7 +63,7 @@ steps:
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
type: docker
 | 
					type: docker
 | 
				
			||||||
name: valgrind
 | 
					name: amd64_gcc — valgrind
 | 
				
			||||||
trigger:
 | 
					trigger:
 | 
				
			||||||
  branch:
 | 
					  branch:
 | 
				
			||||||
  - main
 | 
					  - main
 | 
				
			||||||
| 
						 | 
					@ -74,7 +89,7 @@ steps:
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
type: docker
 | 
					type: docker
 | 
				
			||||||
name: leak sanitizer
 | 
					name: amd64_clang — sanitizer — leak
 | 
				
			||||||
trigger:
 | 
					trigger:
 | 
				
			||||||
  branch:
 | 
					  branch:
 | 
				
			||||||
  - main
 | 
					  - main
 | 
				
			||||||
| 
						 | 
					@ -133,7 +148,7 @@ steps:
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
type: docker
 | 
					type: docker
 | 
				
			||||||
name: clang format
 | 
					name: style
 | 
				
			||||||
trigger:
 | 
					trigger:
 | 
				
			||||||
  branch:
 | 
					  branch:
 | 
				
			||||||
  - main
 | 
					  - main
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue