From 9ce0d304f42ef3a6808e7e94be42cb56bb51068d Mon Sep 17 00:00:00 2001 From: David Miguel Susano Pinto Date: Fri, 26 Apr 2024 16:06:36 +0100 Subject: [PATCH] maint: remove Travis stuff which has been replaced with Github actions (#325) --- .travis.yml | 86 ------------------------------------- travis_scripts/dependency_installs | 24 ----------- travis_scripts/trigger-dockerhub.sh | 54 ----------------------- 3 files changed, 164 deletions(-) delete mode 100644 .travis.yml delete mode 100755 travis_scripts/dependency_installs delete mode 100755 travis_scripts/trigger-dockerhub.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 55d65a321..000000000 --- a/.travis.yml +++ /dev/null @@ -1,86 +0,0 @@ -language: perl -perl: - - "5.26" - - "5.24" - - "5.20" - - "5.18" - - "5.16" - -matrix: - include: - - perl: 5.18 - env: COVERAGE=1 TEST_PARTITION=1 - - perl: 5.18 - env: COVERAGE=1 TEST_PARTITION=2 - - perl: 5.18 - env: COVERAGE=1 TEST_PARTITION=3 - - perl: 5.18 - env: COVERAGE=1 TEST_PARTITION=4 - - perl: 5.18 - env: COVERAGE=1 TEST_PARTITION=5 - - perl: 5.18 - env: COVERAGE=1 TEST_PARTITION=6 - -sudo: false -env: - global: - - PERL_CPANM_OPT="--notest --force --skip-satisfied" - - BIOPERL_NETWORK_TESTING=0 # disables the network tests - - TEST_PARTITIONS=6 - -addons: - apt: - packages: - - libdb-dev - - graphviz - - libgd2-xpm-dev - - libxml2-dev - -before_install: - - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi) - - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers - - source ~/travis-perl-helpers/init - - build-perl - - perl -V - - cpanm DBD::mysql DBD::Pg DBD::SQLite 2>&1 | tail -n 1 - - cpanm Test::Pod 2>&1 | tail -n 1 - - cpanm Bio::ASN1::EntrezGene 2>&1 | tail -n 1 - - if [ "$TRAVIS_EVENT_TYPE" = "cron" -a "$BRANCH" = "network-cron-master" ]; then - export BIOPERL_NETWORK_TESTING=1; - git fetch origin master:master; git checkout master; - fi - - if [ "$BIOPERL_NETWORK_TESTING" = "1" ]; then - export TRAVIS_AUTHOR_TESTING=1; - export TRAVIS_RELEASE_TESTING=1; - cpanm LWP::UserAgent LWP::Protocol::https 2>&1 | tail -n 1; - fi - - build-dist - - cd $BUILD_DIR -install: - - cpan-install --deps - - cpan-install --coverage -before_script: - - coverage-setup -script: - - export AUTHOR_TESTING=${TRAVIS_AUTHOR_TESTING:=0} - - export RELEASE_TESTING=${TRAVIS_RELEASE_TESTING:=0} - - prove -l -j$(test-jobs) $(test-files) -after_success: - - coverage-report - - ./travis_scripts/trigger-dockerhub.sh - -#TODO - send emails to bioperl-guts-l -notifications: - email: - recipients: - - bioperl-guts-l@lists.open-bio.org - - cjfields1@gmail.com - on_success: change - on_failure: change - -# whitelist branches -branches: - only: - - master - - /^release-[1-9]*-[0-9]*-[0-9]*$/ - - network-cron-master diff --git a/travis_scripts/dependency_installs b/travis_scripts/dependency_installs deleted file mode 100755 index b11b14ad4..000000000 --- a/travis_scripts/dependency_installs +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -mkdir travis_builds - -cd travis_builds - -# samtools -git clone https://github.com/samtools/samtools.git -cd samtools -git checkout tags/0.1.18 -perl -p -i -e 's/^(CFLAGS=\s+)[^\n]*/$1-g -Wall -O2 -fPIC #-m64 #-arch ppc/' Makefile -make 2>&1 | tail -n 1 -cd .. - -# push Bio-Root to front -# git clone https://github.com/bioperl/Bio-Root.git -# export PERL5LIB=$( pwd )/Bio-Root/lib:$( pwd ):$PERL5LIB - -export SAMTOOLS=$( pwd )/samtools - -echo "Bio::DB::Sam installation" -cpanm Bio::DB::Sam 2>&1 | tail -n 10 - -exit 0 diff --git a/travis_scripts/trigger-dockerhub.sh b/travis_scripts/trigger-dockerhub.sh deleted file mode 100755 index 36bb789ce..000000000 --- a/travis_scripts/trigger-dockerhub.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -set -e - -# the Docker Hub API endpoint -dockerapi="https://registry.hub.docker.com/u/bioperl/bioperl/trigger" - -## Travis runs a build for several versions of Perl, but we want to -## trigger only for the same version of Perl as is running in the -## Docker container -docker_perl="5.18" - -if [[ ${TRAVIS_PERL_VERSION:0:4} != "$docker_perl" ]] ; then - echo "Triggering Docker Hub only for Perl $docker_perl, not $TRAVIS_PERL_VERSION" - exit 0 -fi - -if [[ "$TRAVIS_PULL_REQUEST" != "false" ]] ; then - echo "Not triggering Docker Hub for pull requests." - exit 0 -fi - -if [[ -z "$DOCKERHUB_TOKEN" ]] ; then - echo "No API token for Docker Hub, add to repository settings." - exit 1 -fi - -if [[ -n "$COVERAGE" && "$COVERAGE" != "0" ]] ; then - echo "Not triggering Docker Hub for code coverage build." - exit 0 -fi - -## Should check for tag names that indicate release candidates rather -## than release names, and then skip those. -## However, this is already taken care of by the regular expression -## for whitelisting branches. - -if [[ -n "$TRAVIS_TAG" && "$TRAVIS_TAG" != "false" ]] ; then - # if we are building a whitelisted tag, we trigger the stable image - echo "Triggering rebuild of Docker image bioperl/bioperl:stable" - curl -H "Content-Type: application/json" \ - --data '{"docker_tag": "stable"}' \ - -X POST $dockerapi/$DOCKERHUB_TOKEN/ -elif [[ "$TRAVIS_BRANCH" != "master" ]] ; then - # if someone were to create a branch that matches the whitelisting - # pattern, we skip that here, and only trigger on master - echo "Not triggering Docker Hub for branches other than master" -else - # not a pull request, not a tag, and the branch is master - echo "Triggering rebuild of Docker image bioperl/bioperl:latest" - curl -H "Content-Type: application/json" \ - --data '{"docker_tag": "latest"}' \ - -X POST $dockerapi/$DOCKERHUB_TOKEN/ -fi -- 2.11.4.GIT