Skip to content

Commit

Permalink
Define and update e2e file in Makefile. (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
winder authored Jun 23, 2023
1 parent a93992d commit 7dafc16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:

- name: Run e2e tests
run: |
FILENAME="fa6ad40d/rel-nightly"
export CI_E2E_FILENAME="$FILENAME"
make e2e-conduit
- name: Upload codecov report
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ SRCPATH := $(shell pwd)
export GOPATH := $(shell go env GOPATH)
GOPATH1 := $(firstword $(subst :, ,$(GOPATH)))

# pinned filename can be overridden in CI with an env variable.
CI_E2E_FILENAME ?= f99e7b0c/rel-nightly

GOLDFLAGS += -X github.com/algorand/conduit/version.Hash=$(shell git log -n 1 --pretty="%H")
GOLDFLAGS += -X github.com/algorand/conduit/version.ShortHash=$(shell git log -n 1 --pretty="%h")
GOLDFLAGS += -X github.com/algorand/conduit/version.CompileTime=$(shell date -u +%Y-%m-%dT%H:%M:%S%z)
Expand All @@ -21,9 +24,8 @@ conduit:
install:
cd cmd/conduit && go install -ldflags='${GOLDFLAGS}'

# note: when running e2e tests manually be sure to set the e2e filename: 'export CI_E2E_FILENAME=rel-nightly'
e2e-conduit: conduit
export PATH=$(GOPATH1)/bin:$(PATH); pip3 install e2e_tests/ && e2econduit --s3-source-net ${CI_E2E_FILENAME} --conduit-bin cmd/conduit/conduit
export PATH=$(GOPATH1)/bin:$(PATH); pip3 install e2e_tests/ && e2econduit --s3-source-net $(CI_E2E_FILENAME) --conduit-bin cmd/conduit/conduit

# check that all packages (except tests) compile
check:
Expand Down

0 comments on commit 7dafc16

Please sign in to comment.