-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (45 loc) · 3.37 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
script:
######################################################
# Pre-requisites #####################################
######################################################
# Install Ballerina which is reuqired to run automated integration tests
- BALLERINA_VERSION=${VERSION:-0.990.2}
- echo -e "\033[36m${BALLERINA_VERSION}\033[m"
- DISTRIBUTION_NAME=ballerina-${BALLERINA_VERSION}
- echo -e "\033[36m${DISTRIBUTION_NAME}\033[m"
- DOWNLOAD_CHANNEL=${CHANNEL:-downloads}
- echo -e "\033[36m${DOWNLOAD_CHANNEL}\033[m"
- 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}${RC:-}/${DISTRIBUTION_NAME}${RC:-}.zip\033[m"
- wget ${DOWNLOAD_LOCATION}/${DOWNLOAD_CHANNEL}/${BALLERINA_VERSION}${RC:-}/${DISTRIBUTION_NAME}${RC:-}.zip
- unzip -q ${DISTRIBUTION_NAME}${RC:-}.zip
- export PATH=${PATH}:$(pwd)/${DISTRIBUTION_NAME}/bin
- ballerina version
######################################################
# Staging environment ################################
######################################################
- export ENV=Staging
# build the artefacts and deploy in staging server
- mvn clean install -q
- cd SampleServicesCompositeApplication$ENV
- mvn clean deploy -Dmaven.deploy.skip=true -Dmaven.car.deploy.skip=false
- cd ../
- sleep 10
# run the integration tests
- cd IntegrationTests
- ballerina test
######################################################
# Production environment ################################
######################################################
- export ENV=Production
after_success:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d-%H-%M-%S")-$TRAVIS_BUILD_NUMBER
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- git push origin $GIT_TAG
env:
global:
- secure: BEo6kfbc7ZcVeKidDKNkli4LERgayKiaJ5xeBCFfoXiIIZWOHaA2OzNkC425buxv9kCGifnkJlfsAe3fqlscajuHyLYFf7noHsoQ163HOmG0VE4ZAu0Y1flMn/0kP5oU4dbQjHUHxcpTwFR6eIx5XK7yV7swmutLYNqZ9eg1q8DZCl5bRwktkMr0NAMMXEodFI0Hot0XdA8huDI+c+PfJZT3YU7QhPXLaqWlADV/RAo3sn/1kjrtQI1MKNtpyr/wwFMa9nckQoxUBBEPBVxOe8m+38+5oZPUm9GcaaIsydeRlQILHrNJiKA1KqQcRaXynlPU2A9HoxoLS80gdkMzYd+iCcMTyfK43JikuWGvaoJzTBuBYXE6jr61Mya46boSVP+uGatlq6iIq75V3JXnVeY+dLTDdnxT2JLPd1AyUAbOxBVi1w4lX4DxZ3ayXHJ72nMwAAGcxAjQhmXJeJPt/EGajxsjbe2EAJ0XT2Mh5u/XPIAX/da6Ynt9Xej67OpJAZINm08JUkCVtEHgFNkUKU0vCAfAdLWnzp28BQhERObhdBS4nw3VxbR3tioVueQRwOhwD3DNIKadJVN083c5aQmKcmkwOHji4xmIFwXPjgj3+SONg/iHwBcot8nz16FD5N9566U7FXCMvj+xZy1Qdtkq0Gr+EMV/0zm+rebvpLI=
- secure: jhasFLdCKNktPpt3KbNqSlAwXdya1eHhUj+MVS6wG5yz27NElUheEJhwIFaoBRL5f4ragg/8nDIoGBCKEWQ40lYzeB8+RyK3EswRAaRPa7q7F6QOUTVvp0kUlFoEh6zlj07URyDRP/qAxc8mcS4WP3FvDLF+zmRsaxvuwf1In6IjLdaD8ZHA8/74+dAkWd/Qj2oYKM04qS5G1jcRu4nyo5IzcAV5oJPJtnqwutJ5k91D3nno0XcbTeFYuUHfUIKOx/bs8xHauelSlmO0RvYmJ962pY+ALI4q65wWdY2g5yDmt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