forked from ROCm/rocm-cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (41 loc) · 976 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
sudo: required
dist: trusty
language: cpp
script: cmake
matrix:
include:
# OSX
- os: osx
compiler: clang
- os: linux
compiler: gcc
addons: &gcc
apt:
packages:
- util-linux
- g++-5
- cppcheck
- clang-4.0
- clang-tidy-4.0
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
install:
- export CHECKOUT_PATH=`pwd`
# Show compiler info
- $CXX --version
- which $CXX
- $CC --version
- which $CC
- which cmake
- cmake --version
script:
- export INSTALL_PREFIX_PATH="${TRAVIS_BUILD_DIR}/usr"
- mkdir -p "$INSTALL_PREFIX_PATH"
- cd $CHECKOUT_PATH
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX_PATH ..
- make check
- make install
- rm -rf "$INSTALL_PREFIX_PATH"