-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
30 lines (29 loc) · 1.96 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
language: node_js
node_js:
- "8.2.1"
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.m2
jobs:
include:
- stage: CI CD For WSO2 API Cloud
install:
- npm install newman
script:
- echo "Start building the source code"
- bash BackendServiceImpl/build.sh || travis_terminate 1;
- echo "Start deploying the backend service to WSO2 Integration Cloud Dev Tenant"
- bash DeployBackendService/deploy.sh Dev || travis_terminate 1;
- echo "Start deploying the managed REST API to WSO2 API Cloud Dev Tenant"
- node_modules/.bin/newman run DeployAPI/WSO2_API_PUBLISHER.postman_collection.json -e DevEnvironment/Development.postman_environment.json --global-var username=$devclouduser --global-var password=$devclouduserpass --bail || travis_terminate 1;
- echo "Start testing the REST API in WSO2 API Cloud Dev Tenant"
- node_modules/.bin/newman run TestAPI/WSO2_API_STORE_TESTS.postman_collection.json -e DevEnvironment/Development.postman_environment.json --global-var username=$devclouduser --global-var password=$devclouduserpass --bail || travis_terminate 1;
- echo "Promoting to Staging Environment"
- echo "Start deploying the backend service to WSO2 Integration Cloud Staging Tenant"
- bash DeployBackendService/deploy.sh Staging
- echo "Start deploying the managed REST API to WSO2 API Cloud Staging Tenant"
- node_modules/.bin/newman run DeployAPI/WSO2_API_PUBLISHER.postman_collection.json -e StagingEnvironment/Staging.postman_environment.json --global-var username=$stagingclouduser --global-var password=$stagingclouduserpass --bail || travis_terminate 1;
- echo "Start testing the REST API in WSO2 API Cloud Staging Tenant"
- node_modules/.bin/newman run TestAPI/WSO2_API_STORE_TESTS.postman_collection.json -e StagingEnvironment/Staging.postman_environment.json --global-var username=$stagingclouduser --global-var password=$stagingclouduserpass --bail || travis_terminate 1;