Skip to content

Commit

Permalink
Merge pull request #15 from mattt416/fix_gating_scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
RPC CIT Jenkins authored May 29, 2018
2 parents 4157dd9 + 6ed409b commit 841c710
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 22 deletions.
13 changes: 7 additions & 6 deletions component_requirements.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Do not modify by hand. This file is automatically generated from the required dependencies and the constraints specified for them.
dependencies:
- name: rpc-component-1
ref: 1.1.3
ref: 1.0.1
ref_type: tag
repo_url: https:/mattt416/rpc-component-1
sha: 4e47e7232fc456bc9277526c39831b1450fe50de
version: 1.1.3
sha: 7a0b674ad92aa0e63f185a1aaa7830c584b9c123
version: 1.0.1
- name: rpc-component-2
ref: r1.2.0
ref: 1.0.1
ref_type: tag
repo_url: https:/mattt416/rpc-component-2
sha: abc7e24028e8b52e488e32e1abfff6168c4ac7ff
version: r1.2.0
sha: 7646f1d0ef46b997fa976efb1faa99c47b2e6cb4
version: 1.0.1
1 change: 0 additions & 1 deletion gating/check

This file was deleted.

20 changes: 8 additions & 12 deletions gating/pre_merge_test/pre → gating/check/pre
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,31 @@ apt-get install -y python-pip python-virtualenv
#
## Grab top level metadata repo, this is necessary to obtain component repo URLs
#git.Repo.clone_from(
# 'https:/mattt416/rpc-metadata',
# '/opt/rpc-metadata'
# 'https:/rcbops/releases',
# '/opt/releases'
#)
#
#for dep in dep_metadata['dependencies']:
# component_metadata = yaml.safe_load(open('/opt/rpc-metadata/%s.yml' % dep['name']).read())
# component_metadata = yaml.safe_load(open('/opt/releases/%s.yml' % dep['name']).read())
# clone_dir = '/opt/%s' % dep['name']
# print('Cloning %s to %s ...' % (dep['name'], clone_dir))
# repo = git.Repo.clone_from(component_metadata['repo'], clone_dir)
# repo.git.checkout(dep['sha'])
#END

# Until https:/mattt416/rpc-metadata/pull/1, we need to pull down a WIP branch
git clone https:/mattt416/rpc-metadata/ /opt/rpc-metadata
pushd /opt/rpc-metadata
git clone https:/rcbops/rpc_component/
pushd rpc_component
virtualenv --python=python3 .venv
set +u
source .venv/bin/activate
set -u
pip install -c constraints.txt -r requirements.txt
pushd rpc_component
pip install .
popd
pip install .
popd

component dependency download-requirements --download-dir /opt

deactivate

echo "Deploying components ..."
/opt/rpc-component-1/gating/pre_merge_test/run
/opt/rpc-component-2/gating/pre_merge_test/run
/opt/rpc-component-1/gating/check/run
/opt/rpc-component-2/gating/check/run
File renamed without changes.
2 changes: 1 addition & 1 deletion gating/periodic
1 change: 0 additions & 1 deletion gating/post_merge_test

This file was deleted.

2 changes: 1 addition & 1 deletion gating/release

0 comments on commit 841c710

Please sign in to comment.