forked from avr-llvm/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
25 lines (22 loc) · 879 Bytes
/
.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
language: cpp
compiler:
- clang
# Attempt to get the right GCC/Clang versions
before_script:
- sudo add-apt-repository -y ppa:kubuntu-ppa/backports
- sudo apt-get update -qq
- sudo apt-get install cmake
- if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq libstdc++-4.8-dev; fi
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- git clone --depth=1 https://github.com/avr-llvm/clang.git tools/clang
- git clone --depth=1 https://github.com/avr-llvm/compiler-rt.git projects/compiler-rt
script:
- mkdir build && cd build
# Build shared libs - faster linking
- cmake ../ -DLLVM_TARGETS_TO_BUILD="AVR" -DBUILD_SHARED_LIBS="ON"
- make -j3
- export PATH=$(pwd)/bin:$PATH
- cd ../
# Run the AVR test-suite
- llvm-lit -v `find ./test -type d -name AVR`