Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit e92777e

Browse files
authored
Merge pull request #30 from 01org/travis
Add a Travis-CI config file
2 parents e9a58f4 + b19f911 commit e92777e

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.travis.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
os: linux
2+
sudo: false
3+
language: cpp
4+
compiler:
5+
- gcc
6+
- clang
7+
8+
env:
9+
global:
10+
- CMAKE_PREFIX_PATH=$HOME/install
11+
12+
addons:
13+
apt:
14+
sources:
15+
- ubuntu-toolchain-r-test
16+
- george-edison55-precise-backports
17+
packages:
18+
- g++-4.8
19+
- cmake-data
20+
- cmake
21+
- libasound2-dev
22+
23+
before_install:
24+
- mkdir $CMAKE_PREFIX_PATH
25+
26+
install:
27+
- wget 'https://github.com/01org/parameter-framework/releases/download/v3.2.6/parameter-framework-3.2.6.0-Linux.tar.gz'
28+
- tar xf parameter-framework-3.2.6.0-Linux.tar.gz --strip-components=1 -C $CMAKE_PREFIX_PATH
29+
30+
before_script:
31+
- export CC=gcc-4.8 CXX=g++-4.8
32+
33+
script:
34+
- ( mkdir -p build/debug && cd build/debug &&
35+
cmake -DCMAKE_BUILD_TYPE=Debug $TRAVIS_BUILD_DIR && make -j$(nproc) )
36+
- ( mkdir build/release && cd build &&
37+
cmake -DCMAKE_BUILD_TYPE=Release $TRAVIS_BUILD_DIR && make -j$(nproc) )

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2727
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828

29-
# has been tested on 2.8 only - might work on older versions
30-
cmake_minimum_required(VERSION 2.8)
29+
# has been tested on 3.2 only - might work on older versions
30+
cmake_minimum_required(VERSION 3.2)
3131

3232
project(parameter-framework-plugins-alsa)
3333

0 commit comments

Comments
 (0)