Added Travis CI script

This commit is contained in:
MerryMage 2016-09-02 11:28:50 +01:00
parent a465b2ddbc
commit e83a2bacad
4 changed files with 47 additions and 0 deletions

19
.travis.yml Normal file
View file

@ -0,0 +1,19 @@
language: cpp
matrix:
include:
- os: linux
sudo: required
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- lib32stdc++6 # For CMake
install: ./.travis/deps.sh
script: ./.travis/build.sh

14
.travis/build.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
set -e
set -x
export CC=gcc-6
export CXX=g++-6
export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH
mkdir build && cd build
cmake .. -DDYNARMIC_USE_SYSTEM_BOOST=0 -DBoost_INCLUDE_DIRS=externals/ext-boost
make -j4
ctest -VV -C Release

13
.travis/deps.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
set -e
set -x
mkdir -p $HOME/.local
curl -L https://cmake.org/files/v3.4/cmake-3.4.1-Linux-i386.tar.gz \
| tar -xz -C $HOME/.local --strip-components=1
# TODO: This isn't ideal.
cd externals
git clone https://github.com/citra-emu/ext-boost
cd ..

View file

@ -1,5 +1,6 @@
Dynarmic Dynarmic
======== ========
[![Travis CI Build Status](https://api.travis-ci.org/MerryMage/dynarmic.svg?branch=master)](https://travis-ci.org/MerryMage/dynarmic/branches)
A dynamic recompiler for the ARMv6K architecture. A dynamic recompiler for the ARMv6K architecture.