fix ci
fix ci - ginkgo
This commit is contained in:
parent
57498dd11f
commit
272e4a858b
@ -103,7 +103,7 @@ func (b *Build) Build() error {
|
||||
// the binary name is always same as the directory name of current directory
|
||||
func (b *Build) determineOutputDir(outputDir string) (string, error) {
|
||||
if b.TmpDir == "" {
|
||||
log.Errorf("Can only be called after Build.MvProjectsToTmp()", ErrWrongCallSequence)
|
||||
log.Errorf("Can only be called after Build.MvProjectsToTmp(): %v", ErrWrongCallSequence)
|
||||
return "", fmt.Errorf("can only be called after Build.MvProjectsToTmp(): %w", ErrWrongCallSequence)
|
||||
}
|
||||
curWorkingDir, err := os.Getwd()
|
||||
|
@ -56,6 +56,7 @@ var _ = Describe("E2E", func() {
|
||||
testProjDir := filepath.Join(TESTS_ROOT, "samples/simple_project")
|
||||
cmd := exec.Command("goc", "build", "--debug")
|
||||
cmd.Dir = testProjDir
|
||||
cmd.Env = append(os.Environ(), "GO111MODULE=on")
|
||||
|
||||
out, err := cmd.CombinedOutput()
|
||||
Expect(err).To(BeNil(), "goc build on this project should be successful", string(out))
|
||||
|
@ -22,4 +22,4 @@ chmod +x /home/runner/tools/e2e.test/e2e.test
|
||||
export PATH=/home/runner/tools/e2e.test:$PATH
|
||||
|
||||
cd e2e
|
||||
e2e.test ./...
|
||||
e2e.test -test.v ./...
|
Loading…
Reference in New Issue
Block a user