This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from mitza-oci/master
Build on Travis CI
- Loading branch information
Showing
5 changed files
with
93 additions
and
17 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
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,28 @@ | ||
sudo: false | ||
dist: trusty | ||
language: cpp | ||
compiler: clang | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-trusty-4.0 | ||
packages: | ||
- llvm-4.0-dev | ||
- clang-4.0 | ||
- g++-6 | ||
- ninja-build | ||
before_install: | ||
- mkdir ext && cd ext | ||
- wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2 && tar xjf boost_1_64_0.tar.bz2 | ||
- "cd boost_1_64_0 && ./bootstrap.sh --prefix=$TRAVIS_BUILD_DIR/ext && echo 'using clang : 4.0 : clang++-4.0 ;' >> project-config.jam && ./b2 -d0 -j4 --with-thread --with-date_time --with-system --with-filesystem --with-program_options --with-signals --with-serialization --with-chrono --with-test --with-context --with-locale --with-coroutine toolset=clang link=static install" | ||
- cd $TRAVIS_BUILD_DIR/ext && git clone --depth=1 --single-branch git://github.com/cryptonomex/secp256k1-zkp | ||
- cd secp256k1-zkp && ./autogen.sh && ./configure --prefix=$TRAVIS_BUILD_DIR/ext CC=clang-4.0 CXX=clang++-4.0 && make && make install | ||
- cd $TRAVIS_BUILD_DIR/ext && wget https://cmake.org/files/v3.9/cmake-3.9.0-Linux-x86_64.tar.gz && tar xzf cmake-3.9.0-Linux-x86_64.tar.gz | ||
- cd $TRAVIS_BUILD_DIR/ext && git clone --depth=1 --single-branch git://github.com/oci-labs/clang-WebAssembly wasm-compiler | ||
- cd $TRAVIS_BUILD_DIR | ||
script: | ||
- WASM_LLVM_CONFIG=$TRAVIS_BUILD_DIR/ext/wasm-compiler/bin/llvm-config ext/cmake-3.9.0-Linux-x86_64/bin/cmake -G Ninja -DCMAKE_CXX_COMPILER=clang++-4.0 -DCMAKE_C_COMPILER=clang-4.0 -DBOOST_ROOT=$TRAVIS_BUILD_DIR/ext -DSecp256k1_ROOT_DIR=$TRAVIS_BUILD_DIR/ext | ||
- ninja -j4 | ||
- tests/chain_test | ||
- tests/slow_test |
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,52 @@ | ||
# This module defines: | ||
# GMP_FOUND - system has GMP lib | ||
# GMP_INCLUDE_DIR - the GMP include directory | ||
# GMP_LIBRARIES_DIR - directory where the GMP libraries are located | ||
# GMP_LIBRARIES - Link these to use GMP | ||
# GMP_IN_CGAL_AUXILIARY - TRUE if the GMP found is the one distributed with CGAL in the auxiliary folder | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
if(GMP_INCLUDE_DIR) | ||
set(GMP_in_cache TRUE) | ||
else() | ||
set(GMP_in_cache FALSE) | ||
endif() | ||
if(NOT GMP_LIBRARIES) | ||
set(GMP_in_cache FALSE) | ||
endif() | ||
|
||
# Is it already configured? | ||
if (GMP_in_cache) | ||
|
||
set(GMP_FOUND TRUE) | ||
|
||
else() | ||
|
||
find_path(GMP_INCLUDE_DIR | ||
NAMES gmp.h | ||
HINTS ENV GMP_INC_DIR | ||
ENV GMP_DIR | ||
PATH_SUFFIXES include | ||
DOC "The directory containing the GMP header files" | ||
) | ||
|
||
find_library(GMP_LIBRARIES NAMES libgmp.a gmp.lib gmp libgmp-10 mpir | ||
HINTS ENV GMP_LIB_DIR | ||
ENV GMP_DIR | ||
PATH_SUFFIXES lib | ||
DOC "Path to the GMP library" | ||
) | ||
|
||
if ( GMP_LIBRARIES ) | ||
get_filename_component(GMP_LIBRARIES_DIR ${GMP_LIBRARIES} PATH CACHE ) | ||
endif() | ||
|
||
# Attempt to load a user-defined configuration for GMP if couldn't be found | ||
if ( NOT GMP_INCLUDE_DIR OR NOT GMP_LIBRARIES_DIR ) | ||
include( GMPConfig OPTIONAL ) | ||
endif() | ||
|
||
find_package_handle_standard_args(GMP "DEFAULT_MSG" GMP_LIBRARIES GMP_INCLUDE_DIR) | ||
|
||
endif() |
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