aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 91694a821284da586d29f1fbcb932afdad6440d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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