Skip to content

Commit

Permalink
ci: git reset between two compilation to avoid go.mod version update …
Browse files Browse the repository at this point in the history
…error
  • Loading branch information
safchain committed Sep 25, 2019
1 parent 4d1bb77 commit 54cbf25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/ci/run-compile-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,42 @@ git clone https://github.com/collectd/collectd.git /tmp/collectd
COLLECTD_SRC=/tmp/collectd make contribs

# Compile with default options
git reset --hard
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
GOOS=windows GOARCH=amd64 go build github.com/skydive-project/skydive

# Compile Skydive for MacOS
git reset --hard
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 54cbf25

Please sign in to comment.