Skip to content

Commit

Permalink
next try
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin8105 committed May 30, 2024
1 parent 6f56bf2 commit ad5b766
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: |
go get -u github.com/wadey/gocovmerge
# go get -u github.com/Konstantin8105/cs
# go get -u golang.org/x/sys/unix
go get -u golang.org/x/sys/unix
TRAVIS=true ./scripts/test.sh
# - name: Run Tests
# run: |
Expand Down
16 changes: 8 additions & 8 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ mkdir -p ./testdata/

# Package list
# export PKGS="github.com/Konstantin8105/c4go github.com/Konstantin8105/c4go/ast github.com/Konstantin8105/c4go/noarch github.com/Konstantin8105/c4go/preprocessor github.com/Konstantin8105/c4go/program github.com/Konstantin8105/c4go/scripts github.com/Konstantin8105/c4go/transpiler github.com/Konstantin8105/c4go/types github.com/Konstantin8105/c4go/util github.com/Konstantin8105/c4go/version"
export PKGS="c4go c4go/ast c4go/version"
# $(go list ./... | grep -v c4go/testdata | grep -v c4go/examples | grep -v c4go/tests | grep -v /vendor/ | tr '\n' ' ')
export PKGS='github.com/Konstantin8105/c4go github.com/Konstantin8105/c4go/ast'
# export PKGS=$(go list -e ./... | grep -v c4go/testdata | grep -v c4go/examples | grep -v c4go/tests | grep -v /vendor/ | tr '\n' ' ')

# Make comma-separated.
export PKGS_DELIM=$(echo "$PKGS" | tr ' ' ',')

echo "PKGS : $PKGS"
echo "PKGS_DELIM : $PKGS_DELIM"

go test \
-cover \
-covermode=atomic \
-timeout=30m \
-coverpkg=$PKGS_DELIM \
-coverprofile=./testdata/pkg.coverprofile $PKGS
go test \
-cover \
-covermode=atomic \
-timeout=30m \
-coverpkg=$PKGS_DELIM \
-coverprofile=./testdata/pkg.coverprofile $PKGS

# Merge coverage profiles.
COVERAGE_FILES=`ls -1 ./testdata/*.coverprofile 2>/dev/null | wc -l`
Expand Down

0 comments on commit ad5b766

Please sign in to comment.