-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98d55ad
commit 3e4a870
Showing
8 changed files
with
78 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
language: cpp | ||
compiler: clang | ||
os: osx | ||
osx_image: xcode9.1 | ||
|
||
before_install: | ||
- brew install ninja || true | ||
- brew install boost || true | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja boost || true ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
sudo cmake_ver='3.10.1' boost_ver='1.66.0' ./ubuntu_install_build_deps.sh; | ||
fi | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
sudo: false | ||
- os: osx | ||
compiler: clang | ||
osx_image: xcode9.1 | ||
|
||
script: | ||
- mkdir build | ||
- cd build | ||
- cmake .. | ||
- make | ||
- test/unittest | ||
- mkdir build | ||
- cd build | ||
- cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON | ||
- make | ||
- test/unittest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
find_package(Boost) | ||
|
||
add_library(graph | ||
graph.cpp) | ||
add_executable(gviz | ||
main.cpp) | ||
target_include_directories(gviz | ||
PUBLIC | ||
include_directories( | ||
${Boost_INCLUDE_DIRS}) | ||
|
||
target_link_libraries(gviz | ||
${Boost_LIBRARY_DIRS}) | ||
boost_graph) | ||
|
||
add_subdirectory(Analysis) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
set -xeu | ||
|
||
apt-get update -q; | ||
apt-get install \ | ||
software-properties-common \ | ||
python-software-properties -y; | ||
|
||
add-apt-repository ppa:ubuntu-toolchain-r/test -y; | ||
apt-get update -q; | ||
apt-get install \ | ||
build-essential \ | ||
git \ | ||
wget \ | ||
gcc-7 \ | ||
g++-7 -y; | ||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 50; | ||
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-7 50; | ||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 50; | ||
update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-7 50; | ||
|
||
|
||
wget "https://cmake.org/files/v3.10/cmake-${cmake_ver}.tar.gz" | ||
tar -xf cmake-${cmake_ver}.tar.gz | ||
cd cmake-${cmake_ver} | ||
./bootstrap --prefix=/usr/local > /dev/null | ||
make install -j$(nproc) > /dev/null | ||
cd .. | ||
|
||
boost_ver2="${boost_ver//./_}" | ||
wget "https://dl.bintray.com/boostorg/release/${boost_ver}/source/boost_${boost_ver2}.tar.gz" | ||
tar -xf boost_${boost_ver2}.tar.gz | ||
cd boost_${boost_ver2} | ||
./bootstrap.sh --prefix=/usr --with-libraries=graph > /dev/null | ||
./bjam install -j$(nproc) > /dev/null | ||
cd .. |