Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 2dabf3d

Browse files
authored
Merge pull request #453 from sanger-pathogens/test_build2
Test of the build
2 parents 082c33e + 727300f commit 2dabf3d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ perl:
3737
install:
3838
- git config --local user.name "Pathogen Informatics CI"
3939
- git config --local user.email "[email protected]"
40+
- export UUID=$(cat /proc/sys/kernel/random/uuid)
41+
- git checkout -b $UUID
4042
- export TIMESTAMP_VERSION=$(date -u '+%Y.%m.%d.%H.%M.%S.%3N')
41-
- export BRANCH_BASED_TAG=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "v${TIMESTAMP_VERSION}"; else echo "$TRAVIS_BRANCH-${TIMESTAMP_VERSION}"; fi)
42-
- export EXISTING_TAG=${TRAVIS_TAG}
43-
- export TRAVIS_TAG=${TRAVIS_TAG:-${BRANCH_BASED_TAG}}
43+
- export TRAVIS_TAG=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "v${TIMESTAMP_VERSION}"; else echo "$TRAVIS_BRANCH-${TIMESTAMP_VERSION}"; fi)
4444
- sed -i 's:^version = .*$:version = '"$TIMESTAMP_VERSION"':g' dist.ini
45-
- if [ "${EXISTING_TAG}" == "" ]; then git tag $TRAVIS_TAG; fi
46-
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "${EXISTING_TAG}" == "" ]; then git push -q "https://${GITHUB_OAUTH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}" $TRAVIS_TAG; fi
45+
- git commit -am "Updated the version number to $TIMESTAMP_VERSION"
46+
- git tag $TRAVIS_TAG
47+
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git push -q "https://${GITHUB_OAUTH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}" $TRAVIS_TAG; fi
4748
- dzil authordeps --missing | cpanm --notest
4849
- dzil listdeps --missing | cpanm --notest
4950
script:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ A collection of modules and scripts for processing and analysing large quantitie
33

44
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-brightgreen.svg)](https://github.com/sanger-pathogens/vr-codebase/blob/master/LICENSE)
55

6+
This readme is inaccurate and requires updating
67
## Contents
78
* [Introduction](#introduction)
89
* [Installation](#installation)

0 commit comments

Comments
 (0)