Skip to content

Commit

Permalink
ci: git reset between commits to avoid version conflict due to go.mod…
Browse files Browse the repository at this point in the history
… update
  • Loading branch information
safchain committed Oct 1, 2019
1 parent 525698e commit 94d9905
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 101 deletions.
109 changes: 8 additions & 101 deletions api/types/types_easyjson.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions scripts/ci/run-compile-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,40 @@ COLLECTD_SRC=/tmp/collectd make contribs

# Compile with default options
make

git reset --hard
make test.functionals.compile TAGS=${TAGS}

export CGO_CFLAGS="-I/usr/local/include/dpdk -O3 -g -std=gnu11 -m64 -pthread -march=native -DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3 -DRTE_MACHINE_CPUFLAG_SSSE3 -DRTE_MACHINE_CPUFLAG_SSE4_1 -DRTE_MACHINE_CPUFLAG_SSE4_2 -DRTE_MACHINE_CPUFLAG_PCLMULQDQ -DRTE_MACHINE_CPUFLAG_RDRAND -DRTE_MACHINE_CPUFLAG_FSGSBASE -DRTE_MACHINE_CPUFLAG_F16C -include rte_config.h -Wno-deprecated-declarations"
export CGO_LDFLAGS="-L/usr/local/lib"

# Compile with all build options supported enabled
git reset --hard
make WITH_DPDK=true WITH_EBPF=true WITH_VPP=true WITH_EBPF_DOCKER_BUILDER=true WITH_K8S=true WITH_ISTIO=true \
WITH_HELM=true VERBOSE=true

# Compile Skydive for Windows
git reset --hard
GO111MODULE=on GOOS=windows GOARCH=amd64 go build github.com/skydive-project/skydive

# Compile Skydive for MacOS
git reset --hard
GO111MODULE=on GOOS=darwin GOARCH=amd64 go build github.com/skydive-project/skydive

# Compile profiling
git reset --hard
make WITH_PROF=true VERBOSE=true

make clean

# Compile all tests
git reset --hard
make test.functionals.compile TAGS=${TAGS} WITH_NEUTRON=true WITH_SELENIUM=true WITH_CDD=true \
WITH_SCALE=true WITH_EBPF=true WITH_EBPF_DOCKER_BUILDER=true WITH_VPP=true WITH_K8S=true \
WITH_ISTIO=true WITH_HELM=true

make clean

# Compile static
git reset --hard
make static

0 comments on commit 94d9905

Please sign in to comment.