Use the test script and the go mod download
This commit is contained in:
		
							parent
							
								
									0fbc973899
								
							
						
					
					
						commit
						3274bc93b9
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		
							
								
								
									
										4
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
					@ -1,12 +1,14 @@
 | 
				
			||||||
VERSION := $(shell git describe --always --long --dirty --tags)
 | 
					VERSION := $(shell git describe --always --long --dirty --tags)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
build:
 | 
					build:
 | 
				
			||||||
 | 
						go mod download
 | 
				
			||||||
	go build -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
 | 
						go build -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
 | 
						go mod download
 | 
				
			||||||
	go install -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
 | 
						go install -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test:
 | 
					test:
 | 
				
			||||||
	go test -v ./...
 | 
						./script/test.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: install test
 | 
					.PHONY: install test
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue