Skip to content

Commit

Permalink
Merge pull request wso2#32 from ballerina-guides/Shan1024-patch-1
Browse files Browse the repository at this point in the history
Support adding RC distributions
  • Loading branch information
Anoukh Jayawardena committed Nov 10, 2018
2 parents 804395c + c95b931 commit 07c2981
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
# limitations under the License.

script:
- BALLERINA_VERSION=${VERSION:-0.982.1-SNAPSHOT}
- BALLERINA_VERSION=${VERSION:-0.983.0}
- echo -e "\033[36m${BALLERINA_VERSION}\033[m"

- DISTRIBUTION_NAME=ballerina-platform-${BALLERINA_VERSION}
- DISTRIBUTION_NAME=ballerina-${BALLERINA_VERSION}
- echo -e "\033[36m${DISTRIBUTION_NAME}\033[m"

- DOWNLOAD_CHANNEL=${CHANNEL:-nightly}
Expand All @@ -25,10 +25,10 @@ script:
- DOWNLOAD_LOCATION=${URL:-https://product-dist.ballerina.io}
- echo -e "\033[36m${DOWNLOAD_LOCATION}\033[m"

- echo -e "\033[36m${DOWNLOAD_LOCATION}/${DOWNLOAD_CHANNEL}/${BALLERINA_VERSION}/${DISTRIBUTION_NAME}.zip\033[m"
- wget ${DOWNLOAD_LOCATION}/${DOWNLOAD_CHANNEL}/${BALLERINA_VERSION}/${DISTRIBUTION_NAME}.zip
- echo -e "\033[36m${DOWNLOAD_LOCATION}/${DOWNLOAD_CHANNEL}/${BALLERINA_VERSION}${RC:-}/${DISTRIBUTION_NAME}${RC:-}.zip\033[m"
- wget ${DOWNLOAD_LOCATION}/${DOWNLOAD_CHANNEL}/${BALLERINA_VERSION}${RC:-}/${DISTRIBUTION_NAME}${RC:-}.zip

- unzip -q ${DISTRIBUTION_NAME}.zip
- unzip -q ${DISTRIBUTION_NAME}${RC:-}.zip

- export PATH=${PATH}:$(pwd)/${DISTRIBUTION_NAME}/bin

Expand Down

0 comments on commit 07c2981

Please sign in to comment.