Skip to content

Commit

Permalink
Merge pull request #106 from DDMAL/Feature-Travis_Intergration
Browse files Browse the repository at this point in the history
Re-Implement travis tests for mac, and linux.
  • Loading branch information
napulen committed Jun 15, 2018
2 parents 4ef5c1a + d7206c7 commit 4444898
Showing 1 changed file with 33 additions and 14 deletions.
47 changes: 33 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,36 @@
language: cpp
before_script:
- sudo apt-get install uuid-dev
- wget http://googletest.googlecode.com/files/gtest-1.6.0.zip
- unzip -q gtest-1.6.0.zip
- cd gtest-1.6.0
- sudo cmake .
- sudo make
- cd ..
- cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_LIBRARY_PATH=gtest-1.6.0 -DCMAKE_INCLUDE_PATH=gtest-1.6.0/include .
script:
# Add more platforms here as they become needed.
matrix:
include:
# Linux Installation.
- os: linux
env:
- MATRIX_EVAL="sudo apt-get install build-essential software-properties-common git unzip wget apt-utils uuid-dev -y"
- LIBMEI_EVAL="cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_LIBRARY_PATH=gtest-$GTEST_VERSION -DCMAKE_INCLUDE_PATH=gtest-$GTEST_VERSION/include . && make"
# Mac Installation.
- os: osx
env:
- MATRIX_EVAL="brew install ossp-uuid"
- LIBMEI_EVAL="cmake -DCMAKE_FIND_FRAMEWORK=LAST && make"
before_install:
# Install OS dependencies.
- eval "${MATRIX_EVAL}"
# Edit the GTEST version here, to update the unittest framework.
- export GTEST_VERSION=1.8.0
install:
# Install GTEST.
- wget https://github.com/google/googletest/archive/release-${GTEST_VERSION}.zip
- unzip -q ./release-${GTEST_VERSION}.zip
- cd googletest-release-${GTEST_VERSION}
- cmake .
- make
after_script:
# Install LibMEI.
- cd ..
- eval "${LIBMEI_EVAL}"
script:
# Run Unittests.
- make test
compiler:
- gcc
- clang
notifications:
email: false
slack:
secure: uc59AHlohSmJvpAPcLLiNJS0W83iZ2vPxTPrkzUANdSL77UGpDiM1KbrbHhPFp0FBWPCQ9uhGURIAdEV0oSE6iFaeu95xgGloX3k5ozsw6eD1qXXunSYX5fztPdcB5zuDiU6haLUU/Pu6/Yen8n9GaDxMjmGsUGt3zj87l4xJDs=

0 comments on commit 4444898

Please sign in to comment.