Joel Stanley | 4d948ac | 2016-03-18 14:12:02 +1030 | [diff] [blame] | 1 | language: c |
| 2 | |
| 3 | sudo: required |
| 4 | dist: trusty |
| 5 | |
| 6 | compiler: |
Patrick Williams | ed04991 | 2022-12-08 06:13:13 -0600 | [diff] [blame] | 7 | - clang |
| 8 | - gcc |
Joel Stanley | 4d948ac | 2016-03-18 14:12:02 +1030 | [diff] [blame] | 9 | |
| 10 | install: |
Patrick Williams | ed04991 | 2022-12-08 06:13:13 -0600 | [diff] [blame] | 11 | - sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test |
| 12 | - sudo apt-add-repository -y ppa:h-rayflood/llvm |
| 13 | - sudo apt-get update && sudo apt-get install -yy gcc-5 clang-3.6 |
| 14 | - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50 |
| 15 | - sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 |
| 16 | 50 |
| 17 | - gcc --version |
| 18 | - clang --version |
Joel Stanley | 4d948ac | 2016-03-18 14:12:02 +1030 | [diff] [blame] | 19 | |
| 20 | script: |
Patrick Williams | ed04991 | 2022-12-08 06:13:13 -0600 | [diff] [blame] | 21 | - autoreconf -i && ./configure && make |