make deps call tools
This commit is contained in:
		
							parent
							
								
									5f19587dda
								
							
						
					
					
						commit
						99bb2041ae
					
				
							
								
								
									
										2
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										2
									
								
								Makefile
								
								
								
								
							| 
						 | 
					@ -88,7 +88,7 @@ vet:
 | 
				
			||||||
	@go vet $(PKG)
 | 
						@go vet $(PKG)
 | 
				
			||||||
	@staticcheck $(PKG)
 | 
						@staticcheck $(PKG)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
deps:
 | 
					deps: tools
 | 
				
			||||||
	GO111MODULE=on go mod vendor
 | 
						GO111MODULE=on go mod vendor
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test:
 | 
					test:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@ pipeline:
 | 
				
			||||||
              IMAGE=registry-write.opensource.zalan.do/acid/postgres-operator-test
 | 
					              IMAGE=registry-write.opensource.zalan.do/acid/postgres-operator-test
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
            export IMAGE
 | 
					            export IMAGE
 | 
				
			||||||
            make tools deps docker
 | 
					            make deps docker
 | 
				
			||||||
        - desc: 'Run unit tests'
 | 
					        - desc: 'Run unit tests'
 | 
				
			||||||
          cmd: |
 | 
					          cmd: |
 | 
				
			||||||
            export PATH=$PATH:$HOME/go/bin
 | 
					            export PATH=$PATH:$HOME/go/bin
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -33,7 +33,7 @@ by setting the `GO111MODULE` environment variable to `on`. The make targets do
 | 
				
			||||||
this for you, so simply run
 | 
					this for you, so simply run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
make tools deps
 | 
					make deps
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This would take a while to complete. You have to redo `make deps` every time
 | 
					This would take a while to complete. You have to redo `make deps` every time
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,7 +30,7 @@ spec:
 | 
				
			||||||
# Expert section
 | 
					# Expert section
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  enableShmVolume: true
 | 
					  enableShmVolume: true
 | 
				
			||||||
  spiloFSGroup: 103
 | 
					#  spiloFSGroup: 103
 | 
				
			||||||
  postgresql:
 | 
					  postgresql:
 | 
				
			||||||
    version: "11"
 | 
					    version: "11"
 | 
				
			||||||
    parameters:
 | 
					    parameters:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -98,7 +98,7 @@ function build_operator_binary(){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # redirecting stderr greatly reduces non-informative output during normal builds
 | 
					    # redirecting stderr greatly reduces non-informative output during normal builds
 | 
				
			||||||
    echo "Build operator binary (stderr redirected to /dev/null)..."
 | 
					    echo "Build operator binary (stderr redirected to /dev/null)..."
 | 
				
			||||||
    make clean tools deps local test > /dev/null 2>&1
 | 
					    make clean deps local test > /dev/null 2>&1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue