From ad5b7669aec21f9d12fb1f32209c8913ca879d2e Mon Sep 17 00:00:00 2001 From: Konstantin8105 Date: Thu, 30 May 2024 10:37:58 +0300 Subject: [PATCH] next try --- .github/workflows/codecov.yml | 2 +- scripts/test.sh | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 81ace1a3..1a1f854e 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -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: | diff --git a/scripts/test.sh b/scripts/test.sh index 1ffcbbda..80fb540d 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -29,8 +29,8 @@ 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 ' ' ',') @@ -38,12 +38,12 @@ 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`