aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 08e5b2bf2c8a7ad8f80756ccf5a0ac4cf4bef50e (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
matrix:
  include:
    - dist: trusty
      sudo: required
      language: cpp
      before_script: 
      - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
      - sudo add-apt-repository ppa:fkrull/deadsnakes -y
      - sudo apt-get update -y
      - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
      - echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main" | sudo tee -a /etc/apt/sources.list
      - sudo apt-get update -qq
      - travis_retry sudo apt-get install clang-5.0 libclang-5.0-dev libclang-common-5.0-dev libllvm5.0 llvm-5.0-dev llvm-5.0 llvm-5.0-runtime -y
      - sudo apt-get install gcc-4.9 g++-4.9
      - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
      - git submodule init
      - git submodule update
      script: 
        - make CXX=clang-5.0 LLVM_CONF=llvm-config-5.0
      after_success:
        ./run.sh
    - dist: trusty
      sudo: required
      language: cpp
      before_script: 
      - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
        #- sudo add-apt-repository ppa:fkrull/deadsnakes -y
      - sudo apt-get update -y
      - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
      - echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main" | sudo tee -a /etc/apt/sources.list
      - sudo apt-get update -qq
      - travis_retry sudo apt-get install clang-6.0 libclang-6.0-dev libclang-common-6.0-dev libllvm6.0 llvm-6.0-dev llvm-6.0 llvm-6.0-runtime -y
        #- sudo apt-get install gcc-4.9 g++-4.9
        #- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
      - git submodule init
      - git submodule update
      script: 
        - make CXX=clang-6.0 LLVM_CONF=llvm-config-6.0
      after_success:
        ./run.sh
    - dist: xenial
      sudo: required
      language: cpp
      before_script: 
      - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
        #- sudo add-apt-repository ppa:fkrull/deadsnakes -y
      - sudo apt-get update -y
        #- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
        #- echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9.0 main" | sudo tee -a /etc/apt/sources.list
        #- sudo apt-get update -qq
        #- travis_retry sudo apt-get install clang-9.0 libclang-9.0-dev libclang-common-9.0-dev libllvm9.0 llvm-9.0-dev llvm-9.0 llvm-9.0-runtime -y
        #- sudo apt-get install gcc-4.9 g++-4.9
        #- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
        wget https://apt.llvm.org/llvm.sh
        chmod +x llvm.sh
        sudo ./llvm.sh 9
      - git submodule init
      - git submodule update
      script: 
        - make CXX=clang-9.0 LLVM_CONF=llvm-config-9.0
      after_success:
        ./run.sh