forked from MIPT-ILab/mipt-mips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (66 loc) · 1.75 KB
/
.travis.yml
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
74
75
76
77
notifications:
email: false
language: cpp
sudo: true
osx_image: xcode9.4
branches:
only:
- master
compiler:
- gcc
- clang
os:
- linux
- osx
git:
submodules: true
matrix:
exclude:
- os: osx
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
- sourceline: deb http://www.emdebian.org/debian/ squeeze main
update: true
packages:
- g++-7
- libboost-program-options1.54-dev
- clang-tidy-7
install:
- if [ $CXX == g++ ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then CXX=g++-7; fi
# Download and build binutils on OS X
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
./traces/.get-binutils.sh $TRAVIS_BUILD_DIR/binutils/cross/mips
export PATH=$PATH:$TRAVIS_BUILD_DIR/binutils/cross/mips/bin
fi
# Download binutils on Linux
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get install binutils-mips-linux-gnu --allow-unauthenticated
fi
before_script:
- cd $TRAVIS_BUILD_DIR/traces && make
- cd $TRAVIS_BUILD_DIR/simulator
- mkdir release && cd release
- cmake .. -DCMAKE_BUILD_TYPE=Release
script:
- make all unit-tests
- ctest --verbose
after_success:
- ./mipt-mips -b $TRAVIS_BUILD_DIR/traces/fib.out -n 1000000 # Run a trace to see simulation frequency
- |
if [ $CXX == clang++ ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then
run-clang-tidy-7.py -header-filter='.*'
fi
- |
if [ $CXX == g++-7 ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then
cd $TRAVIS_BUILD_DIR/simulator
mkdir debug && cd debug
cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=1
make unit-tests && ctest
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
fi