-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build instructions after conda packaging of dependencies
- Loading branch information
1 parent
fda8d63
commit 6fd530d
Showing
10 changed files
with
201 additions
and
38 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
build: false | ||
|
||
os: Visual Studio 2015 | ||
|
||
platform: | ||
- x64 | ||
- x86 | ||
|
||
environment: | ||
matrix: | ||
- MINICONDA: C:\xtensor-conda | ||
|
||
init: | ||
- "ECHO %MINICONDA%" | ||
- C:\"Program Files (x86)"\"Microsoft Visual Studio 14.0"\VC\vcvarsall.bat %PLATFORM% | ||
- ps: if($env:Platform -eq "x64"){Start-FileDownload 'http://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe' C:\Miniconda.exe; echo "Done"} | ||
- ps: if($env:Platform -eq "x86"){Start-FileDownload 'http://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86.exe' C:\Miniconda.exe; echo "Done"} | ||
- cmd: C:\Miniconda.exe /S /D=C:\xtensor-conda | ||
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%MINICONDA%\\Library\\bin;%PATH%" | ||
|
||
install: | ||
# Install conda | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
- conda install cmake cppzmq zeromq rapidjson cryptopp -c conda-forge | ||
- mkdir build | ||
- cd build | ||
- cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%MINICONDA%\\LIBRARY -D BUILD_EXAMPLES=ON .. | ||
- nmake |
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,105 @@ | ||
language: cpp | ||
matrix: | ||
include: | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.9 | ||
env: COMPILER=gcc GCC=4.9 | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-5 | ||
env: COMPILER=gcc GCC=5 | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-6 | ||
env: COMPILER=gcc GCC=6 | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-precise-3.6 | ||
packages: | ||
- clang-3.6 | ||
env: COMPILER=clang CLANG=3.6 | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-precise-3.7 | ||
packages: | ||
- clang-3.7 | ||
env: COMPILER=clang CLANG=3.7 | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-precise-3.8 | ||
packages: | ||
- clang-3.8 | ||
env: COMPILER=clang CLANG=3.8 | ||
#- os: osx | ||
# osx_image: xcode8 | ||
# compiler: clang | ||
env: | ||
global: | ||
- MINCONDA_VERSION="latest" | ||
- MINCONDA_LINUX="Linux-x86_64" | ||
- MINCONDA_OSX="MacOSX-x86_64" | ||
before_install: | ||
- | | ||
# Configure build variables | ||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
if [[ "$COMPILER" == "gcc" ]]; then | ||
export CXX=g++-$GCC CC=gcc-$GCC; | ||
fi | ||
if [[ "$COMPILER" == "clang" ]]; then | ||
export CXX=clang++-$CLANG CC=clang-$CLANG; | ||
fi | ||
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | ||
export CXX=clang++ CC=clang; | ||
fi | ||
install: | ||
# Install conda | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
MINCONDA_OS=$MINCONDA_LINUX; | ||
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | ||
MINCONDA_OS=$MINCONDA_OSX; | ||
fi | ||
- wget "http://repo.continuum.io/miniconda/Miniconda3-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh; | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- hash -r | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
# Start test environement | ||
- conda env create -f ./test/test-environment.yml | ||
- source activate test-xeus | ||
# Build | ||
- mkdir build | ||
- cd build | ||
- cmake -D BUILD_EXAMPLES=ON .. | ||
- make | ||
script: | ||
- | | ||
cd example | ||
cd echo_kernel | ||
./echo_kernel & | ||
cd .. | ||
cd echo_client | ||
./echo_client |
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
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,2 @@ | ||
conda: | ||
file: docs/environment.yml |
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,11 @@ | ||
name: test-xeus | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- cmake | ||
- libuuid | ||
- zeromq | ||
- cppzmq | ||
- rapidjson | ||
- cryptopp |