diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 44edaf22c..000000000 --- a/.travis.yml +++ /dev/null @@ -1,159 +0,0 @@ -sudo: required - -language: cpp - -matrix: - # Windows builds are experimental in Travis, ignore job results in case of failure! - allow_failures: - - os: windows - - os: linux - env: DYNAMIC_ANALYSIS=ON PENGUINV_UNIT_TEST_RUN_COUNT=10 CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug" - include: - - os: linux - addons: - apt: - sources: - - sourceline: 'ppa:beineri/opt-qt596-xenial' - packages: - - libgl-dev - - libpng-dev - - libjpeg-dev - - ocl-icd-opencl-dev - - opencl-headers - update: true - name: "Linux (Ubuntu) with CUDA 8 and Qt 5.9" - env: CUDA=8.0.61-1 QT_BASE=59 CMAKE_OPTIONS="-DPENGUINV_BUILD_TEST=ON" - before_install: - - source script/travis/install_cuda.sh - - source script/travis/install_qt5.sh - - os: linux - arch: arm64 - addons: - apt: - sources: - - sourceline: 'ppa:beineri/opt-qt596-xenial' - packages: - - libgl-dev - - libpng-dev - - libjpeg-dev - - ocl-icd-opencl-dev - - opencl-headers - update: true - name: "Linux (Ubuntu) ARM" - before_script: - - cd test/unit_tests - script: - - make -j 2 - - ./unit_tests - - cd ../performance_tests - - make -j 2 - - cd ../../examples - - make -j 2 - - os: osx - name: "OSX with QT latest" - env: QT_BASE=latest CMAKE_OPTIONS="" - before_install: - - brew link --force qt5; - - export CMAKE_PREFIX_PATH=$(brew --prefix qt5)/lib/cmake; - - os: linux - language: python - name: "Python 3.6 module compilation" - python: 3.6 - env: SWIG=ON - before_script: - - wget https://github.com/swig/swig/archive/rel-3.0.12.tar.gz - - tar xzf rel-3.0.12.tar.gz && cd swig-rel-3.0.12 - - ./autogen.sh - - ./configure --prefix=${HOME}/swig/ - - make -j 2 - - make install - - export PATH=${HOME}/swig/bin:$PATH - - swig -version - - python --version - script: - - cd $TRAVIS_BUILD_DIR/src/python && python setup.py build_ext --inplace - - cd $TRAVIS_BUILD_DIR/examples/python && python bitmap_operation.py - - os: linux - name: "Static analysis" - env: STATIC_ANALYSIS=ON - before_install: - - | - if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then - curl -L http://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/clang-format-diff.py -o $TRAVIS_BUILD_DIR/script/clang-format-diff.py; - fi - script: - - export EXCLUDE_PATTERN_1=" not found in expected header "; - - export EXCLUDE_PATTERN_2=" not found in any directly \#included header"; - - git clone --depth 50 https://github.com/myint/cppclean; - - ./cppclean/cppclean src test examples | grep -v "$EXCLUDE_PATTERN_1" | grep -v "$EXCLUDE_PATTERN_2" - - cd ${TRAVIS_BUILD_DIR} - - | - if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then - echo "Checking clang-format between TRAVIS_BRANCH=$TRAVIS_BRANCH and TRAVIS_PULL_REQUEST_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH" - bash $TRAVIS_BUILD_DIR/script/check_code_format.sh - else - echo "Skipping clang-format check since this is not a pull request." - fi - - os: linux - name: "Dynamic analysis" - env: DYNAMIC_ANALYSIS=ON PENGUINV_UNIT_TEST_RUN_COUNT=10 CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug" - after_script: - - source ${TRAVIS_BUILD_DIR}/script/travis/display_log_files.sh ${TRAVIS_BUILD_DIR}/build/Testing/Temporary - addons: - apt: - update: true - packages: valgrind - - os: windows - name: "Windows (x86) with VS2015" - env: - - TARGET="Visual Studio 14 2015" - - BUILD_TYPE="Release" - before_install: if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then choco install -y vcbuildtools --version 2015.4 --force; fi - - os: windows - name: "Windows (x64) with VS2015" - language: bash - env: - - TARGET="Visual Studio 14 2015 Win64" - - BUILD_TYPE="Release" - before_install: if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then choco install -y vcbuildtools --version 2015.4 --force; fi - -before_script: - # Let CMake generate build files - - | - if [[ "$TRAVIS_EVENT_TYPE" == "cron" && "$DYNAMIC_ANALYSIS" != "ON" ]]; then - export PENGUINV_UNIT_TEST_RUN_COUNT=1000 - fi - if [[ "$STATIC_ANALYSIS" != "ON" ]]; then - mkdir -p build && cd build - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then - if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then - cmake -G "$TARGET" ..; - fi - else - cmake .. ${CMAKE_OPTIONS} - fi - fi - -script: - - | - # Build and run tests - if [[ "$TRAVIS_EVENT_TYPE" == "cron" || "$TRAVIS_OS_NAME" != "windows" ]]; then - set -e - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then - cmake --build . --config $BUILD_TYPE # --config is ignored on Linux/MacOS - else - cmake --build . -- -j 2 - fi - set +e - if [[ "$DYNAMIC_ANALYSIS" == "ON" ]]; then - ctest --overwrite MemoryCheckCommandOptions="--show-reachable=no" \ - -R unit_test --extra-verbose \ - -T MemCheck # execute unit_test only - else - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then - ctest -C $BUILD_TYPE -E 'perf_test' --extra-verbose # execute unit_test and unit_test_opencl - else - ctest -E 'perf_test' --extra-verbose # execute unit_test and unit_test_opencl - fi - fi - fi diff --git a/README.md b/README.md index a2cd41550..9b3cadebf 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ The trick behind the code is that you have a **single interface** for CPU as wel Contribution --------------------------- -[![Actions Status](https://github.com/ihhub/penguinv/workflows/GitHub%20Actions/badge.svg)](https://github.com/ihhub/penguinv/actions) [![Total alerts](https://img.shields.io/lgtm/alerts/g/ihhub/penguinV.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/ihhub/penguinV/alerts/) +[![Actions Status](https://github.com/ihhub/penguinv/workflows/GitHub%20Actions/badge.svg)](https://github.com/ihhub/penguinv/actions) We welcome and appreciate any help, even if it's a tiny text or code change. Please read [contribution](https://github.com/ihhub/penguinV/blob/master/CONTRIBUTING.md) page before starting work on a pull request. diff --git a/script/appveyor/cuda_install.cmd b/script/appveyor/cuda_install.cmd deleted file mode 100644 index 2bcb262c1..000000000 --- a/script/appveyor/cuda_install.cmd +++ /dev/null @@ -1,18 +0,0 @@ -@echo off -echo Downloading CUDA toolkit 8 -appveyor DownloadFile https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda_8.0.44_windows-exe -FileName cuda_8.0.44_windows.exe -echo Installing CUDA toolkit 8 -cuda_8.0.44_windows.exe -s compiler_8.0 ^ - cublas_dev_8.0 ^ - cudart_8.0 ^ - curand_dev_8.0 ^ - cufft_dev_8.0 - -if NOT EXIST "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\cudart64_80.dll" ( -echo "Failed to install CUDA" -exit /B 1 -) - -set CUDA_DIR=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0 -set PATH=%CUDA_DIR%\bin;%CUDA_DIR%\libnvvp;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin;%PATH% -nvcc -V diff --git a/script/travis/display_log_files.sh b/script/travis/display_log_files.sh deleted file mode 100755 index 78742882f..000000000 --- a/script/travis/display_log_files.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# Display the content of all log files in a folder - -if [ $# -lt 1 ] -then - echo "Please provide a folder from which all the log files will be displayed"; - exit 1; -fi - -log_folder=$1 -log_files=`ls $log_folder/*.log 2> /dev/null` - -if [ -z "${log_files}" ] -then - echo "No log files to display in folder $log_folder" -else - echo "Displaying content of log files in folder $log_folder" - for log_file in $log_files - do - echo File: "${log_file##*/}"; - cat $log_file; - echo; - done -fi diff --git a/script/travis/install_cuda.sh b/script/travis/install_cuda.sh deleted file mode 100644 index 1968431ed..000000000 --- a/script/travis/install_cuda.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# -# Install the core CUDA toolkit for a ubuntu-trusty (14.04) system. Requires the -# CUDA environment variable to be set to the required version. -# -# Since this script updates environment variables, to execute correctly you must -# 'source' this script, rather than executing it in a sub-process. -# - -travis_retry wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_${CUDA}_amd64.deb -travis_retry sudo dpkg -i cuda-repo-ubuntu1404_${CUDA}_amd64.deb -travis_retry sudo apt-get update -qq -export CUDA_APT=${CUDA:0:3} -export CUDA_APT=${CUDA_APT/./-} -travis_retry sudo apt-get install -y cuda-drivers cuda-core-${CUDA_APT} cuda-cufft-dev-${CUDA_APT} cuda-cudart-dev-${CUDA_APT} -travis_retry sudo apt-get clean -export CUDA_HOME=/usr/local/cuda-${CUDA:0:3} -export LD_LIBRARY_PATH=${CUDA_HOME}/nvvm/lib64:${LD_LIBRARY_PATH} -export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH} -export CPLUS_INCLUDE_PATH=${CUDA_HOME}/include:${CPLUS_INCLUDE_PATH} -export C_INCLUDE_PATH=${CUDA_HOME}/include:${C_INCLUDE_PATH} -export PATH=${CUDA_HOME}/bin:${PATH} - diff --git a/script/travis/install_qt5.sh b/script/travis/install_qt5.sh deleted file mode 100644 index 23c813976..000000000 --- a/script/travis/install_qt5.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -if [[ $QT_BASE ]]; then - if [ "$TRAVIS_OS_NAME" = "linux" ]; then - sudo apt-get update -qq; - sudo apt-get install qt59base -y; - source /opt/qt59/bin/qt59-env.sh; - export CMAKE_PREFIX_PATH=/opt/qt59/lib/cmake; - else - brew update; - brew install qt5; - brew link --force qt5; - export CMAKE_PREFIX_PATH=$(brew --prefix qt5)/lib/cmake; - fi -fi