Skip to content

Commit

Permalink
reqpacks validate (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
chayim authored Oct 4, 2021
1 parent 9637adb commit 120749b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ commands:
- setup-automation
- run:
name: Build for platform
shell: /bin/bash
command: |
OSNICK=<<parameters.platform>> ./build/reqpacks/build
- persist_to_workspace:
Expand Down
10 changes: 6 additions & 4 deletions build/reqpacks/build
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ export READIES=$ROOT/deps/readies
OSNICK=${OSNICK:-bionic}
ARCH=${ARCH:-x64}

git branch |grep master
if [ $? -eq 0 ]; then
if [ -z ${CIRCLE_BRANCH} ]; then
branch=`git branch|grep '*'| cut -d ' ' -f 2-`
fi
if [ ${CIRCLE_BRANCH} == 'master' ]; then
BRSPEC=""
RGSYNC_VERSION=99.99.99
else
Expand All @@ -25,11 +27,11 @@ if [[ -z $GEARS_VERSION ]]; then
if [[ $RGSYNC_VERSION == 99.99.99 ]]; then
GEARS_VERSION=master
else
GEARS_VERSION=1.0.1
GEARS_VERSION=1.0.7
fi
fi

echo "RGSYNC_VERSION=$RGSYNC_VERSION" > $HERE/env
echo "RGSYNC_VERSION=${RGSYNC_VERSION//[[:space:]]/}" > $HERE/env
$ROOT/deps/readies/bin/xtx -e BRSPEC $HERE/requirements.txt | sed -e '/^[ \t]*#/d' > $HERE/requirements.final

cd $ROOT
Expand Down

0 comments on commit 120749b

Please sign in to comment.