Skip to content

Commit

Permalink
Switch from Travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed May 25, 2023
1 parent 417bbbe commit 171cf57
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 46 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/base-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Tests

on:
push:
pull_request:

jobs:
base-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@3

- name: Install dependencies (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
# So we get all backports etc
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
sudo apt-get update -qq
sudo apt-get install eatmydata # to speedup some installations
sudo eatmydata apt-get install singularity-container shellcheck bats git-annex-standalone
- name: Install dependencies (macOS)
if: startsWith(matrix.os, 'macos')
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install shellcheck
HOMEBREW_NO_AUTO_UPDATE=1 brew install git-annex
HOMEBREW_NO_AUTO_UPDATE=1 brew install bats
sudo cp ci/dummy_docker /usr/local/bin/docker
- name: Fetch git-annex data
run: |
git fetch origin git-annex
git remote add --fetch datalad.datasets.org http://datasets.datalad.org/repronim/containers/.git
git annex upgrade # we need v7 for the unlocked test img
- name: Shellcheck code examples
run: grep -m 1 -l '^#!/bin/.*sh' | grep -v '\.\(txt\|md\)' | xargs shellcheck

- name: Run script tests
run: bats -t scripts/tests
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ReproNim/containers - containerized environments for reproducible neuroimaging

[![Travis tests status](https://secure.travis-ci.org/ReproNim/containers.png?branch=master)](https://travis-ci.org/ReproNim/containers)
[![CI Status](https://github.com/RepoNim/containers/actions/workflows/base-tests.yaml/badge.svg)](https://github.com/RepoNim/containers/actions/workflows/base-tests.yaml)
[![Additional tests](https://github.com/ReproNim/containers/workflows/Additional%20tests/badge.svg)](https://github.com/ReproNim/containers/actions?query=workflow%3A%22Additional+tests%22)

This repository provides a [DataLad] dataset (git/git-annex
Expand Down
File renamed without changes.
29 changes: 0 additions & 29 deletions travis/install.sh

This file was deleted.

0 comments on commit 171cf57

Please sign in to comment.