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

naming packages

parent 081c912f
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
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
echo $CI_COMMIT_REF_NAME"-"$CI_COMMIT_SHA > clmctest/git-commit-ref
......@@ -3,4 +3,5 @@
*__pycache__*
*__init__.pyc
*egg-info*
*git-commit-ref*
ubuntu-xenial-16.04-cloudimg-console.log
......@@ -8,8 +8,7 @@ stages:
build:tests:
stage: build
script:
- mkdir -p .build-config
- echo "$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA" > .build-config/git-commit-ref
- echo "$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA" > clmctest/git-commit-ref
- python setup.py sdist --dist-dir=build
artifacts:
paths:
......@@ -30,7 +29,7 @@ test:
- vagrant --fixture=inputs -- destroy --force
- vagrant --fixture=monitoring -- destroy --force
- vagrant --fixture=scripts -- destroy --force
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 -y uninstall clmctest"
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 uninstall -y clmctest"
when: on_success
\ No newline at end of file
include MANIFEST.in
recursive-include clmctest *.yml *.sh
\ No newline at end of file
recursive-include clmctest *.yml *.sh git-commit-ref
\ No newline at end of file
......@@ -6,7 +6,7 @@ def read(fname):
setup(
name = "clmctest",
version = read('.build-config/git-commit-ref'),
version = read('clmctest/git-commit-ref'),
author = "Michael Boniface",
author_email = "mjb@it-innovation.soton.ac.uk",
description = "FLAME CLMC Testing Module",
......@@ -14,7 +14,7 @@ setup(
keywords = "FLAME CLMC test",
packages=find_packages(exclude=["services"]),
include_package_data=True,
package_data={'': ['*.yml', '*.sh']},
package_data={'': ['git-commit-ref', '*.yml', '*.sh']},
long_description="long description",
classifiers=[
"Development Status :: Alpha",
......
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