-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
20 lines (18 loc) · 1018 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: cpp
dist: trusty
compiler: g++
sudo: required
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -q
- sudo apt-get remove gcc g++
- sudo apt-get install g++-7 gcc-7 -y
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- sudo update-alternatives --install /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-7 60
- sudo update-alternatives --install /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-7 60
- sudo update-alternatives --install /usr/bin/x86_64-linux-gnu-gcc x86_64-linux-gnu-gcc /usr/bin/x86_64-linux-gnu-gcc-7 60 --slave /usr/bin/x86_64-linux-gnu-g++ x86_64-linux-gnu-g++ /usr/bin/x86_64-linux-gnu-g++-7
# run the typical ci checks, run code style check first
script:
- which g++ && which gcc && g++ -dumpversion
- for mode in core simp; do pushd $mode; make clean || true; popd; done
- for mode in core simp; do pushd $mode && make d -j 1 && make clean || exit 1; popd; done