-
Notifications
You must be signed in to change notification settings - Fork 30
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
Showing
2,142 changed files
with
23,487 additions
and
24,117 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,47 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
env: | ||
CXXFLAGS: "-fprofile-arcs -ftest-coverage" | ||
|
||
jobs: | ||
test: | ||
name: "Python ${{ matrix.python-version }} / ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ["2.7", "3.6"] | ||
os: [ubuntu-18.04] | ||
compiler: [gcc] | ||
env: | ||
CC: ${{ matrix.compiler }} | ||
PY2: ${{ startsWith(matrix.python-version, 2) && 'on' || 'off' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq libboost-all-dev swig libhdf5-serial-dev libeigen3-dev \ | ||
cmake libcgal-dev libcgal-qt5-dev \ | ||
libfftw3-dev libopencv-dev libgsl0-dev libann-dev \ | ||
libprotobuf-dev protobuf-compiler \ | ||
libopenmpi-dev | ||
if [ "${{ env.PY2 }}" == "on" ] | ||
then | ||
sudo apt-get install -qq python-dev python-numpy python-protobuf \ | ||
python-nose python-pip python-biopython | ||
export PIP=pip2 | ||
else | ||
sudo apt-get install -qq python3-dev python3-numpy python3-protobuf \ | ||
python3-nose python3-pip python3-biopython | ||
export PIP=pip3 | ||
fi | ||
$PIP install codecov | ||
- name: Set up git | ||
run: ./setup_git.py | ||
- name: Build IMP | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. -DUSE_PYTHON2=${{ env.PY2 }} -DCMAKE_CXX_FLAGS="${{ env.CXXFLAGS }}" -DCGAL_DIR=/usr/lib/x86_64-linux-gnu/cmake/CGAL/ | ||
make -k -j 2 |
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,24 @@ | ||
name: flake | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
flake: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.8] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Test | ||
run: | | ||
pip install flake8 | ||
flake8 tools modules/parallel/pyext modules/test/pyext modules/mmcif/pyext |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.14.0 | ||
2.15.0 |
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 @@ | ||
include(CheckCXXSourceCompiles) | ||
function(check_compiles name pkgname ucpkgname includes include_dir link_libs result) | ||
#message(STATUS "Trying to compile ${pkgname} searching in ${include_dir} ${link_libs}") | ||
set(CMAKE_REQUIRED_LIBRARIES ${link_libs}) | ||
set(CMAKE_REQUIRED_INCLUDES ${include_dir}) | ||
set(mybody "${includes} | ||
int main(int,char*[]) { | ||
${CHECK_COMPILES_BODY} | ||
return 0; | ||
}") | ||
set(${pkgname}) | ||
check_cxx_source_compiles("${mybody}" "${pkgname}${name}") | ||
if ("${${pkgname}${name}}" MATCHES "1") | ||
#message(STATUS "Compiled ok") | ||
set(${ucpkgname}_INCLUDE_PATH ${include_dir} CACHE INTERNAL "" FORCE) | ||
foreach(l ${link_libs}) | ||
set(${ucpkgname}_LIBRARIES ${${ucpkgname}_LIBRARIES} ${l} CACHE INTERNAL "" FORCE) | ||
endforeach() | ||
file(WRITE "${CMAKE_BINARY_DIR}/build_info/${pkgname}" "ok=True | ||
includepath=\"${${pkgname}_INCLUDE_PATH}\" | ||
swigpath=\"${${pkgname}_SWIG_PATH}\" | ||
libpath=\"${${pkgname}_LIB_PATH}\" | ||
") | ||
set(${result} "1" PARENT_SCOPE) | ||
else() | ||
set(${result} "0" PARENT_SCOPE) | ||
endif() | ||
endfunction(check_compiles) |
Oops, something went wrong.