From 75cacd6ab55dadfd280555e5454e53834f1decdf Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Tue, 11 Jul 2023 11:57:15 +0200 Subject: [PATCH] Remove Travis CI config --- .travis.yml | 23 --------------------- ci/install.sh | 12 ----------- ci/install_brian.sh | 9 -------- ci/install_nest.sh | 47 ------------------------------------------ ci/install_neuron.sh | 31 ---------------------------- ci/test_script.sh | 11 ---------- ci/upload_coveralls.sh | 7 ------- 7 files changed, 140 deletions(-) delete mode 100644 .travis.yml delete mode 100644 ci/install.sh delete mode 100644 ci/install_brian.sh delete mode 100644 ci/install_nest.sh delete mode 100644 ci/install_neuron.sh delete mode 100644 ci/test_script.sh delete mode 100644 ci/upload_coveralls.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 13bd5217..00000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: python -dist: focal -matrix: - include: - - python: 3.7 - env: PYENV=py37 - - python: 3.8 - env: PYENV=py38 - - python: 3.9 - env: PYENV=py39 -before_install: - - sudo apt-get install -y libgsl0-dev openmpi-bin libopenmpi-dev python-dev -install: - - source ci/install.sh -script: bash ci/test_script.sh -after_success: - - bash ci/upload_coveralls.sh -cache: - directories: - - $HOME/nest-simulator-3.3 - - $HOME/nrn-8.1 - - $HOME/build/nest-simulator-3.3 - - $HOME/.cache/pip diff --git a/ci/install.sh b/ci/install.sh deleted file mode 100644 index c953c760..00000000 --- a/ci/install.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -set -e # stop execution in case of errors - -pip install -r requirements.txt -pip install coveralls -pip install pytest pytest-cov -pip install matplotlib -source ci/install_brian.sh -source ci/install_nest.sh -source ci/install_neuron.sh -python setup.py develop diff --git a/ci/install_brian.sh b/ci/install_brian.sh deleted file mode 100644 index a696f7e1..00000000 --- a/ci/install_brian.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -set -e # stop execution in case of errors - -if [ "$TRAVIS_PYTHON_VERSION" == "3.9" ]; then - echo -e "\n========== Installing Brian 2 ==========\n" - pip install cython; - pip install brian2; -fi \ No newline at end of file diff --git a/ci/install_nest.sh b/ci/install_nest.sh deleted file mode 100644 index 99275b60..00000000 --- a/ci/install_nest.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -set -e # stop execution in case of errors - -if [ "$TRAVIS_PYTHON_VERSION" == "3.9" ]; then - echo -e "\n========== Installing NEST ==========\n" - # Specify which version of NEST to install - #export NEST_VERSION="master" - export NEST_VERSION="3.3" - - pip install cython - - if [ "$NEST_VERSION" = "master" ]; then - export NEST="nest-simulator-$NEST_VERSION" - wget https://github.com/nest/nest-simulator/archive/$NEST_VERSION.tar.gz -O $HOME/$NEST.tar.gz - else - export NEST="nest-simulator-$NEST_VERSION" - wget https://github.com/nest/nest-simulator/archive/refs/tags/v$NEST_VERSION.tar.gz -O $HOME/$NEST.tar.gz - fi - - pushd $HOME - tar xzf $NEST.tar.gz - ls - popd - - mkdir -p $HOME/build/$NEST - pushd $HOME/build/$NEST - export VENV=`python -c "import sys; print(sys.prefix)"`; - - export PYLIB_GLOBAL=`find /opt/python/${TRAVIS_PYTHON_VERSION}/lib/ -name "libpython${TRAVIS_PYTHON_VERSION}*.so"` - ln -s ${PYLIB_GLOBAL} $VENV/lib/libpython${TRAVIS_PYTHON_VERSION}.so - mkdir -p $VENV/include - ln -s /opt/python/${TRAVIS_PYTHON_VERSION}/include/python${TRAVIS_PYTHON_VERSION} $VENV/include/python${TRAVIS_PYTHON_VERSION}; - - cython --version; - cmake --version; - cmake -DCMAKE_INSTALL_PREFIX=$VENV \ - -Dwith-mpi=ON \ - -DPYTHON_EXECUTABLE=$VENV/bin/python \ - -DCYTHON_EXECUTABLE=$VENV/bin/cython \ - $HOME/$NEST; - - make; - make install; - popd; - python -c "import nest"; -fi diff --git a/ci/install_neuron.sh b/ci/install_neuron.sh deleted file mode 100644 index 4fc04836..00000000 --- a/ci/install_neuron.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -set -e # stop execution in case of errors - -if [ "$TRAVIS_PYTHON_VERSION" == "3.9" ]; then - echo -e "\n========== Installing NEURON ==========\n" - export NRN_VERSION="nrn-8.1" - export VENV=`python -c "import sys; print(sys.prefix)"` - - if [ ! -f "$HOME/$NRN_VERSION/build/CMakeCache.txt" ]; then - echo 'Cloning NEURON sources from GitHub' - git clone https://github.com/neuronsimulator/nrn -b release/8.1 $HOME/$NRN_VERSION - mkdir -p $HOME/$NRN_VERSION/build - else - echo 'Using cached NEURON build directory.' - fi - pushd $HOME/$NRN_VERSION/build - - cmake .. -DNRN_ENABLE_INTERVIEWS=OFF -DNRN_ENABLE_MPI=ON -DNRN_ENABLE_RX3D=OFF -DCMAKE_INSTALL_PREFIX=$VENV -DNRN_MODULE_INSTALL_OPTIONS="" - cmake --build . --target install - - pip install nrnutils # must be installed after NEURON - - # compile PyNN NMODL mechanisms - echo $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR/pyNN/neuron/nmodl - nrnivmodl - - popd - -fi \ No newline at end of file diff --git a/ci/test_script.sh b/ci/test_script.sh deleted file mode 100644 index cb170760..00000000 --- a/ci/test_script.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -e # stop execution in case of errors - -if [ "$TRAVIS_PYTHON_VERSION" == "3.9" ]; then - pytest --verbose --cov=pyNN -else - pytest --verbose test/unittests -fi - -exit $? diff --git a/ci/upload_coveralls.sh b/ci/upload_coveralls.sh deleted file mode 100644 index 86d7f26a..00000000 --- a/ci/upload_coveralls.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -set -e # stop execution in case of errors - -if [ "$TRAVIS_PYTHON_VERSION" == "3.9" ]; then - coveralls; -fi \ No newline at end of file