diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index be2839d5e..000000000 --- a/.travis.yml +++ /dev/null @@ -1,212 +0,0 @@ -#============================================================================= -# Travis CoreNeuron settings -#============================================================================= - -#============================================================================= -# Environment -#============================================================================= -language: cpp - -#============================================================================= -# Build matrix -#============================================================================= -matrix: - fast_finish: true - include: - - os: linux - dist: xenial - env: - - cmake_option="-DCORENRN_ENABLE_MPI=ON" - - BUILD_DOCUMENTATION=ON - - os: linux - dist: xenial - env: - - cmake_option="-DCORENRN_ENABLE_MPI=OFF" - - os: linux - dist: xenial - env: - - cmake_option="-DCORENRN_ENABLE_SOA=ON" - - os: linux - dist: xenial - env: - - cmake_option="-DCORENRN_ENABLE_SOA=OFF" - - os: linux - dist: xenial - env: - - PYTHON_VERSION=3.6.7 # for nmodl pip3 install - - USE_NMODL=ON - - os: osx - osx_image: xcode11.3 - env: - - cmake_option="-DCORENRN_ENABLE_MPI=ON" - - os: osx - osx_image: xcode11.3 - env: - - cmake_option="-DCORENRN_ENABLE_MPI=OFF" - - os: osx - osx_image: xcode11.3 - env: - - cmake_option="-DCORENRN_ENABLE_SOA=ON" - - os: osx - osx_image: xcode11.3 - env: - - cmake_option="-DCORENRN_ENABLE_SOA=OFF" - - os: osx - osx_image: xcode11.3 - env: - - USE_NMODL=ON - - os: linux - dist: xenial - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - bison - - flex - - g++-9 - - libboost-all-dev - - libopenmpi-dev - - openmpi-bin - env: - - GCC_VERSION=9 - - os: linux - dist: xenial - env: - - USE_ISPC=ON - - PYTHON_VERSION=3.6.7 - -#============================================================================= -# Common Packages -#============================================================================= -addons: - # for Linux builds, we use APT - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - doxygen - - bison - - flex - - libboost-all-dev - - libopenmpi-dev - - openmpi-bin - - python3-dev - - python3-pip - - # for Mac builds, we use Homebrew - homebrew: - packages: - - bison - - flex - - openmpi - - boost - - python@3 - -#============================================================================= -# Set up environments -#============================================================================= -before_install: - # quickly return if this is a docs-only PR - - | - if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then - if ! git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -qvE '(\.md)$|(\.txt)$|^(docs/)' ; then - echo "Skipping CI build since we have docs-only changes for ${TRAVIS_COMMIT_RANGE} :" - git diff --name-only ${TRAVIS_COMMIT_RANGE} - exit - fi - fi - # brew installed flex and bison is not in $PATH - # unlink python2 and use python3 as it's required for nmodl - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - export PATH=/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH; - brew unlink python@2; - brew link --overwrite python; - else - pyenv global $PYTHON_VERSION; - fi - - if [ -n "$GCC_VERSION" ]; then - export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; - $CXX --version; - fi - -install: - # install ISPC compiler (only for mac or linux build for now) - - if [[ "$USE_ISPC" == "ON" ]]; then - ispc_version="v1.12.0"; - if [ "$TRAVIS_OS_NAME" == "linux" ]; then - url_os="linux"; - ispc_version_suffix="b"; - else - url_os="macOS"; - ispc_version_suffix=""; - fi; - url="https://github.com/ispc/ispc/releases/download/${ispc_version}/ispc-${ispc_version}${ispc_version_suffix}-${url_os}.tar.gz"; - wget -O ispc.tar.gz $url; - mkdir ispc && tar -xvzf ispc.tar.gz -C ispc --strip 1; - fi - - # install NMODL dependencies - - if [[ "$USE_NMODL" == "ON" || "$USE_ISPC" == "ON" ]]; then - pip3 install --upgrade pip; - pip3 install jinja2 pyyaml pytest "sympy<1.6"; - fi - # install documentation dependencies - - if [ "$BUILD_DOCUMENTATION" = "ON" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then - pip3 install --upgrade "pip < 21.0"; - pip3 install --user -r docs/docs_requirements.txt --upgrade; - fi -#============================================================================= -# Build, test and install -#============================================================================= -script: - - echo "------- Build, Test and Install -------" - - mkdir build && cd build - - if [[ "$USE_ISPC" == "ON" ]]; then - cmake -DCORENRN_ENABLE_ISPC=ON -DCMAKE_ISPC_COMPILER=../ispc/bin/ispc - -DCMAKE_INSTALL_PREFIX=$HOME/CoreNeuron -DPYTHON_EXECUTABLE=$(which python3) ..; - elif [[ "$USE_NMODL" == "ON" ]]; then - cmake -DCORENRN_ENABLE_NMODL=ON -DCORENRN_NMODL_FLAGS="sympy --analytic" - -DCMAKE_INSTALL_PREFIX=$HOME/CoreNeuron -DPYTHON_EXECUTABLE=$(which python3) ..; - else - cmake ${cmake_option} -DCMAKE_INSTALL_PREFIX=$HOME/CoreNeuron -DPYTHON_EXECUTABLE=$(which python3) ..; - fi - - make - - ctest --output-on-failure - - make install - - -#============================================================================= -# Prepare Documentation -#============================================================================= -after_success: - - if [ "$BUILD_DOCUMENTATION" = "ON" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then - echo "------- Build Doxygen Documentation -------"; - pushd $TRAVIS_BUILD_DIR/build; - make docs; - echo "-------- Disable jekyll --------"; - pushd $TRAVIS_BUILD_DIR/build/docs; - touch .nojekyll; - fi - - -#============================================================================= -# Whitelist master branch to run Travis CI with it after merge -#============================================================================= -branches: - only: - - master - -#============================================================================= -# Documentation deployment -#============================================================================= -deploy: - provider: pages - skip_cleanup: true - github_token: $GITHUB_TOKEN - keep_history: false - local_dir: $TRAVIS_BUILD_DIR/build/docs - target_branch: gh-pages - on: - branch: master - condition: $BUILD_DOCUMENTATION = ON && $TRAVIS_OS_NAME = linux diff --git a/README.md b/README.md index 194b1bb13..f8ad1b171 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/BlueBrain/CoreNeuron.svg?branch=master)](https://travis-ci.org/BlueBrain/CoreNeuron) ![CoreNEURON CI](https://github.com/BlueBrain/CoreNeuron/workflows/CoreNEURON%20CI/badge.svg) [![codecov](https://codecov.io/gh/BlueBrain/CoreNeuron/branch/master/graph/badge.svg?token=mguTdBx93p)](https://codecov.io/gh/BlueBrain/CoreNeuron) +![CoreNEURON CI](https://github.com/BlueBrain/CoreNeuron/workflows/CoreNEURON%20CI/badge.svg) [![codecov](https://codecov.io/gh/BlueBrain/CoreNeuron/branch/master/graph/badge.svg?token=mguTdBx93p)](https://codecov.io/gh/BlueBrain/CoreNeuron) # CoreNEURON > Optimised simulator engine for [NEURON](https://github.com/neuronsimulator/nrn)