File: get_testing_version.sh

package info (click to toggle)
python-mne 1.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 131,492 kB
  • sloc: python: 213,302; javascript: 12,910; sh: 447; makefile: 144
file content (16 lines) | stat: -rwxr-xr-x 549 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -e

set -o pipefail

TESTING_VERSION=`grep -o "testing=\"[0-9.]\+\"" mne/datasets/config.py | cut -d \" -f 2 | sed "s/\./-/g"`
# This can be incremented to start fresh when the cache misbehaves, e.g.:
# TESTING_VERSION=${TESTING_VERSION}-1
if [ ! -z $GITHUB_ENV ]; then
	echo "TESTING_VERSION="$TESTING_VERSION >> $GITHUB_ENV
elif [ ! -z $AZURE_CI ]; then
	echo "##vso[task.setvariable variable=testing_version]$TESTING_VERSION"
elif [ ! -z $CIRCLECI ]; then
	echo "$TESTING_VERSION" > testing_version.txt
else
	echo $TESTING_VERSION
fi