aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: f0c7611ecb6e3a220d3d67b421e6c01be7aa76e7 (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
sudo: false

matrix:
  include:
  - os: osx
    before_install:
        - brew update
        - brew install zlib expat gawk gnu-sed
        - export MAKEFLAGS="-j3"
        - travis_wait 60 git submodule update --init --recursive
    env:
        - CARGS="--disable-linux  --disable-multilib --with-arch=rv32imafdc --with-abi=ilp32d"
    script:
      # MacOS don't support linux user mode for qemu, so there is only build
      # testing.
      - ./configure --prefix=/tmp/build-default $CARGS
      # MacOS using clang by default, it will generate lots of warning message,
      # pipe stderr to stdout to prevent exceeded the maximum log length.
      - travis_wait 90 scripts/wrapper/make_stderr_tail
  - os: linux
    addons:
      apt:
        sources:
          - ubuntu-toolchain-r-test
        packages:
          - autoconf
          - automake
          - autotools-dev
          - bc
          - bison
          - build-essential
          - curl
          - dejagnu
          - expect
          - flex
          - gawk
          - gperf
          - libgmp-dev
          - libmpc-dev
          - libmpfr-dev
          - libtool
          - patchutils
          - texinfo
          - gcc-6
          - g++-6
    before_install:
      - export MAKEFLAGS="-j3"
      - export CXX=g++-6
      - export CC=gcc-6
      - travis_wait 60 git submodule update --init --recursive
    env:
    #  - CARGS="--enable-linux --disable-multilib --with-arch=rv32imac --with-abi=ilp32"
    #  - CARGS="--enable-linux --disable-multilib --with-arch=rv32imafdc --with-abi=ilp32"
    #  - CARGS="--enable-linux --disable-multilib --with-arch=rv32imafdc --with-abi=ilp32d"
    #  - CARGS="--enable-linux --disable-multilib --with-arch=rv64imac --with-abi=lp64"
    #  - CARGS="--enable-linux --disable-multilib --with-arch=rv64imafdc --with-abi=lp64"
    #  - CARGS="--enable-linux --disable-multilib --with-arch=rv64imafdc --with-abi=lp64d"
       - CARGS="--disable-linux --disable-multilib --with-arch=rv32i --with-abi=ilp32"
       - CARGS="--disable-linux --disable-multilib --with-arch=rv32im --with-abi=ilp32"
       - CARGS="--disable-linux --disable-multilib --with-arch=rv32iac --with-abi=ilp32"
       - CARGS="--disable-linux --disable-multilib --with-arch=rv32imac --with-abi=ilp32"
       - CARGS="--disable-linux --disable-multilib --with-arch=rv32imafc --with-abi=ilp32f"
       - CARGS="--disable-linux --disable-multilib --with-arch=rv64imac --with-abi=lp64"
       - CARGS="--disable-linux --disable-multilib --with-arch=rv64imafdc --with-abi=lp64d"
    script:
      - ./configure --prefix=/tmp/build-default $CARGS
      - travis_wait 90 scripts/wrapper/make_tail
      - travis_wait 180 scripts/wrapper/make_tail check
      - make report

install: true
git:
  submodules: false