Skip to content

travis setup and dependencies #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
- "simulators/*"
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "DEVSDiagrammer"]
path = DEVSDiagrammer
url = git@github.com:Laouen/DEVSDiagrammer.git
url = https://github.com/Laouen/DEVSDiagrammer.git
46 changes: 46 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
language: cpp
sudo: required
env:
global:
# Workaround for https://github.com/travis-ci/travis-ci/issues/4681
matrix:
- TRAVIS_EMPTY_JOB_WORKAROUND=true

matrix:
exclude:
- env: TRAVIS_EMPTY_JOB_WORKAROUND=true

include:
- os: linux
dist: trusty
env: CC=gcc-7 CXX=g++-7 BOOST_ROOT=/usr/include/boost
compiler: gcc
before_install:
- sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- sudo apt-get update
- sudo apt-get install g++-7
- export BOOST_URL="https://downloads.sourceforge.net/project/boost/boost/1.67.0/boost_1_67_0.tar.gz"
- mkdir -p /tmp/boost
- wget --quiet -O - ${BOOST_URL} | tar --strip-components=1 -xz -C /tmp/boost || exit 1
- cd /tmp/boost/tools/build && ./bootstrap.sh && ./b2 install --prefix=/tmp/b2
- export PATH=/tmp/b2/bin:${PATH}
- cd /tmp/boost && b2 toolset=gcc cxxflags="-std=c++14 ${CXXFLAGS}"
- os: osx
osx_image: xcode9.4
env:
before_install:
- brew install lcov
after_success:
# Creating report
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory . --capture --output-file coverage.info # capture coverage info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter out system
- lcov --list coverage.info #debug info
# Uploading report to CodeCov
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"

allow_failures:
- os: linux

script:
- cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" . && make && make test
6 changes: 6 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ BASEDIR_ABS=$(cd "$(dirname "$0")" && pwd)
SIMULATORS_DIR="$BASEDIR_ABS/simulators"
echo "Fetching simulators in $SIMULATORS_DIR"

if [ -d "$SIMULATORS_DIR" ]; then
echo "Simulators dir was setup in previous run"
else
mkdir -p "$SIMULATORS_DIR"
fi

echo "Fetching cadmium"
CADMIUM_DIR="$SIMULATORS_DIR/cadmium"
if [ -d "$CADMIUM_DIR" ]; then
Expand Down