3aa99676b4
This version fixes a regression with regard to tradtional behavior of the non-standard FreeBSD option "-e". In the previous version "-e quit" caused bc to exit before any computations had been performed, since all -e option parameters were concatenated and parsed as a whole, with quit causing the program to exit as soon as it was parsed. This version parses and executes commands passed with -e one by one and only exits after all prior commands have been executed. This commit is not a SVN merge, since the vendor import had been performed after the import to contrib. Instead the contents of contrib/bc has been removed and the new version is copied over unchanged from vendor/bc/dist.
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
dist: bionic
|
|
|
|
language: c
|
|
|
|
arch:
|
|
- amd64
|
|
- arm64
|
|
- ppc64le
|
|
|
|
compiler:
|
|
- gcc
|
|
|
|
env:
|
|
global:
|
|
- CODECOV_TOKEN="040ce7eb-5bc7-4040-8324-364f3ef4baa3"
|
|
- CFLAGS="-coverage -DBC_RAND_BUILTIN=0"
|
|
matrix:
|
|
- CONFIGURE_ARGS=-fHNPOg GEN_HOST=1 LONG_BIT=64
|
|
- CONFIGURE_ARGS=-bfHNPOg GEN_HOST=1 LONG_BIT=64
|
|
- CONFIGURE_ARGS=-dfHNPOg GEN_HOST=1 LONG_BIT=64
|
|
- CONFIGURE_ARGS=-fEHNPOg GEN_HOST=1 LONG_BIT=64
|
|
- CONFIGURE_ARGS=-bfEHNPOg GEN_HOST=1 LONG_BIT=64
|
|
- CONFIGURE_ARGS=-dfEHNPOg GEN_HOST=1 LONG_BIT=64
|
|
- CONFIGURE_ARGS=-fHNPOg GEN_HOST=1 LONG_BIT=32
|
|
- CONFIGURE_ARGS=-bfHNPOg GEN_HOST=1 LONG_BIT=32
|
|
- CONFIGURE_ARGS=-dfHNPOg GEN_HOST=1 LONG_BIT=32
|
|
- CONFIGURE_ARGS=-fEHNPOg GEN_HOST=1 LONG_BIT=32
|
|
- CONFIGURE_ARGS=-bfEHNPOg GEN_HOST=1 LONG_BIT=32
|
|
- CONFIGURE_ARGS=-dfEHNPOg GEN_HOST=1 LONG_BIT=32
|
|
|
|
before_install:
|
|
- sudo apt-get install -y dc
|
|
- pip install --user codecov
|
|
|
|
before_script:
|
|
- curl -o tests/bc/scripts/timeconst.bc https://raw.githubusercontent.com/torvalds/linux/master/kernel/time/timeconst.bc
|
|
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
script:
|
|
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./configure.sh "$CONFIGURE_ARGS" && make -j4 && make -j4 test ; fi
|