ci: remove broken travis coverage job
This commit is contained in:
committed by
Wolfgang Walther
parent
2cbe1ba903
commit
56557c9c40
-50
@@ -78,53 +78,3 @@ jobs:
|
|||||||
ghr -t $GITHUB_TOKEN -u $owner -r $repo -b "$body"--replace $TRAVIS_TAG postgrest-$TRAVIS_TAG-osx.tar.xz
|
ghr -t $GITHUB_TOKEN -u $owner -r $repo -b "$body"--replace $TRAVIS_TAG postgrest-$TRAVIS_TAG-osx.tar.xz
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Code Coverage
|
|
||||||
os: linux
|
|
||||||
dist: focal
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
update: true
|
|
||||||
packages:
|
|
||||||
- postgresql-12
|
|
||||||
- python3
|
|
||||||
- python3-pip
|
|
||||||
cache:
|
|
||||||
yarn: true
|
|
||||||
timeout: 1000
|
|
||||||
directories:
|
|
||||||
- $HOME/.local/bin
|
|
||||||
- $HOME/.stack
|
|
||||||
- .stack-work
|
|
||||||
before_install: |
|
|
||||||
export PATH="$PATH:$HOME/.local/bin:/usr/lib/postgresql/12/bin"
|
|
||||||
install: |
|
|
||||||
if [[ ! -f "$HOME/.local/bin/stack" ]]
|
|
||||||
then
|
|
||||||
travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
|
||||||
fi
|
|
||||||
if [[ ! -f "$HOME/.local/bin/shc" ]]
|
|
||||||
then
|
|
||||||
travis_retry curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.4.0/shc-linux-x64-8.0.1.tar.bz2 | tar -xj -C ~/.local/bin
|
|
||||||
fi
|
|
||||||
travis_wait stack --no-terminal setup
|
|
||||||
travis_wait stack --no-terminal install hpc
|
|
||||||
pip3 install pytest pyyaml requests requests-unixsocket pyjwt
|
|
||||||
script: |
|
|
||||||
travis_wait 50 stack --no-terminal build --fast -j1 --coverage
|
|
||||||
travis_wait 50 stack --no-terminal build --fast -j1 --coverage --test --no-run-tests
|
|
||||||
test/with_tmp_db stack --no-terminal test --coverage
|
|
||||||
test/with_tmp_db stack --no-terminal exec -- pytest -v test/io-tests
|
|
||||||
after_script: |
|
|
||||||
export _HPC_DIR=$(stack path --local-hpc-root)
|
|
||||||
export _MIX_DIR=$(stack path --dist-dir)
|
|
||||||
export _PKG_NAME=$(stack exec -- ghc-pkg field postgrest key --simple-output)
|
|
||||||
# merge the results from `stack test` and the io tests and exclude Paths_postgrest
|
|
||||||
stack --no-terminal exec hpc -- sum --union --exclude=Paths_postgrest --output=/tmp/all.tix $_HPC_DIR/combined/all/all.tix postgrest.tix
|
|
||||||
# fix a bug in stack-hpc-coveralls
|
|
||||||
mv $_MIX_DIR/hpc/Main.mix $_MIX_DIR/hpc/$_PKG_NAME/Main.mix
|
|
||||||
mv $_MIX_DIR/hpc/UnixSocket.mix $_MIX_DIR/hpc/$_PKG_NAME/UnixSocket.mix
|
|
||||||
sed -i -r "s/(Main|UnixSocket)/$_PKG_NAME\/\1/g" /tmp/all.tix
|
|
||||||
# upload to coveralls
|
|
||||||
mv /tmp/all.tix $_HPC_DIR/combined/all/all.tix
|
|
||||||
shc combined all
|
|
||||||
|
|||||||
Reference in New Issue
Block a user