File tree Expand file tree Collapse file tree 5 files changed +10
-11
lines changed
Expand file tree Collapse file tree 5 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1- __version__ = "1.4.7 "
1+ __version__ = "1.4.9 "
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ phases:
1414 - cd aws-iot-device-sdk-python
1515 - export PKG_VERSION=$(git describe --tags | cut -f2 -dv)
1616 - echo "Updating package version to ${PKG_VERSION}"
17- # - sed --in-place -E "s/__version__ = \".+\"/__version__ = \"${PKG_VERSION}\"/" AWSIoTPythonSDK/__init__.py
17+ - sed --in-place -E "s/__version__ = \".+\"/__version__ = \"${PKG_VERSION}\"/" AWSIoTPythonSDK/__init__.py
1818 build :
1919 commands :
2020 - echo Build started on `date`
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ phases:
2020 - cd aws-iot-device-sdk-python
2121 - CURRENT_TAG_VERSION=$(git describe --tags | cut -f2 -dv)
2222 - python3 continuous-delivery/pip-install-with-retry.py --no-cache-dir --user AWSIoTPythonSDK==$CURRENT_TAG_VERSION
23- - python3 samples/greengrass/basicDiscovery.py -e ${ENDPOINT} -c /tmp/certificate.pem -k /tmp/privatekey.pem -r /tmp/AmazonRootCA1.pem -n aws-sdk-crt-unit-test
23+ - python3 samples/greengrass/basicDiscovery.py -e ${ENDPOINT} -c /tmp/certificate.pem -k /tmp/privatekey.pem -r /tmp/AmazonRootCA1.pem
2424
2525 post_build :
2626 commands :
Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ phases:
1212 commands :
1313 - curl https://www.amazontrust.com/repository/AmazonRootCA1.pem --output /tmp/AmazonRootCA1.pem
1414 - cert=$(aws secretsmanager get-secret-value --secret-id "unit-test/certificate" --query "SecretString" | cut -f2 -d":" | cut -f2 -d\") && echo "$cert" > /tmp/certificate.pem
15- - echo /tmp/certificate.pem
1615 - key=$(aws secretsmanager get-secret-value --secret-id "unit-test/privatekey" --query "SecretString" | cut -f2 -d":" | cut -f2 -d\") && echo "$key" > /tmp/privatekey.pem
17- - echo /tmp/certificate.pem
1816 - ENDPOINT=$(aws secretsmanager get-secret-value --secret-id "unit-test/endpoint" --query "SecretString" | cut -f2 -d":" | sed -e 's/[\\\"\}]//g')
1917 build :
2018 commands :
@@ -23,7 +21,8 @@ phases:
2321 - CURRENT_TAG_VERSION=$(git describe --tags | cut -f2 -dv)
2422 # this is here because typing isn't in testpypi, so pull it from prod instead
2523 - python3 -m pip install typing
26- - python3 continuous-delivery/pip-install-with-retry.py -i https://testpypi.python.org/simple --user AWSIoTPythonSDK-V1==1.4.8
24+ - python3 continuous-delivery/pip-install-with-retry.py -i https://testpypi.python.org/simple --user AWSIoTPythonSDK-V1==$CURRENT_TAG_VERSION
25+ # The greengrass test failed for no discover the correct thing. However it is good enough to test if the AWSIoTPythonSDK installed successfully or not.
2726 - python3 samples/greengrass/basicDiscovery.py -e ${ENDPOINT} -c /tmp/certificate.pem -k /tmp/privatekey.pem -r /tmp/AmazonRootCA1.pem
2827
2928 post_build :
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ git describe --tags
77CURRENT_TAG=$( git describe --tags | cut -f2 -dv)
88# convert v0.2.12-2-g50254a9 to 0.2.12
99CURRENT_TAG_VERSION=$( git describe --tags | cut -f1 -d' -' | cut -f2 -dv)
10- # if there's a hash on the tag, then this is not a release tagged commit
11- # if [ "$CURRENT_TAG" != "$CURRENT_TAG_VERSION" ]; then
12- # echo "Current tag version is not a release tag, cut a new release if you want to publish."
13- # exit 1
14- # fi
10+ if there' s a hash on the tag, then this is not a release tagged commit
11+ if [ "$CURRENT_TAG" != "$CURRENT_TAG_VERSION" ]; then
12+ echo "Current tag version is not a release tag, cut a new release if you want to publish."
13+ exit 1
14+ fi
1515
1616if python3 -m pip install --no-cache-dir -vvv AWSIoTPythonSDK==$CURRENT_TAG_VERSION; then
1717 echo "$CURRENT_TAG_VERSION is already in pypi, cut a new tag if you want to upload another version."
You can’t perform that action at this time.
0 commit comments