Skip to content
Snippets Groups Projects
Commit c648720d authored by MJB's avatar MJB
Browse files

commit ref name test

parent 1a6f9355
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
mkdir .build-config
git rev-list --count integration > .build-config/git-commit-count
git describe --all --long > .build-config/git-commit-version
\ No newline at end of file
mkdir -p .build-config
CI_COMMIT_REF_NAME=`git rev-parse --abbrev-ref HEAD`
CI_COMMIT_SHA=`git rev-parse HEAD`
echo $CI_COMMIT_REF_NAME"-"$CI_COMMIT_SHA > .build-config/git-commit-ref
variables:
TEST_PACKAGE_NAME: clmctest-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA.tar.gz
TEST_PACKAGE_NAME: clmctest-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA-.tar.gz
stages:
- build
- test
build:tests:
stage: build
script:
- mkdir -p .build-config
- echo CI_COMMIT_REF_NAME-$CI_COMMIT_SHA > ./build-config/git-commit-ref
- python setup.py sdist --dist-dir=build
- echo $TEST_PACKAGE_NAME
......
......@@ -6,14 +6,12 @@ def read(fname):
setup(
name = "clmctest",
#version = read('.build-config/git-commit-version'),
version = "SNAPSHOT",
version = read('.build-config/git-commit-ref'),
author = "Michael Boniface",
author_email = "mjb@it-innovation.soton.ac.uk",
description = "FLAME CLMC Testing Module",
license = "license",
keywords = "example documentation",
url = "http://packages.python.org/an_example_pypi_project",
keywords = "FLAME CLMC test",
packages=find_packages(exclude=["services"]),
include_package_data=True,
package_data={'': ['*.yml', '*.sh']},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment