Jenkinsfile: Update for fetching submodules.

This commit is contained in:
Aaron Son
2019-08-15 11:57:01 -07:00
parent 77959ad204
commit 39fe77c1ea

6
Jenkinsfile vendored
View File

@@ -17,6 +17,8 @@ pipeline {
sh "go get golang.org/x/tools/cmd/goimports"
}
dir ("go") {
sh "git submodule update --init --recursive"
// Keep this in sync with //go/utils/prepr/prepr.sh.
sh "go get -mod=readonly ./..."
sh "./utils/repofmt/check_fmt.sh"
@@ -42,6 +44,8 @@ pipeline {
sh "npm i bats"
}
dir ("go") {
sh "git submodule update --init --recursive"
sh "go get -mod=readonly ./..."
sh "go build -mod=readonly -o ../.ci_bin/dolt ./cmd/dolt/."
sh "go build -mod=readonly -o ../.ci_bin/git-dolt ./cmd/git-dolt/."
@@ -65,6 +69,8 @@ pipeline {
}
steps {
dir ("go/") {
bat "git submodule update --init --recursive"
bat "go test ./..."
bat "go build -mod=readonly -o ..\\.ci_bin\\dolt.exe ./cmd/dolt/."
bat "copy /Y ..\\.ci_bin\\dolt.exe ..\\.ci_bin\\dolt"