forked from OpenSTFoundation/openst-am1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (69 loc) · 2.5 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
62
63
64
65
66
67
68
69
dist: trusty
language: node_js
sudo: required
branches:
only:
- master
- develop
- release-0.9
- feature/storage_refactor
notifications:
email:
recipients:
on_success: always
on_failure: always
node_js:
- "9"
services:
- rabbitmq
before_install:
- sudo apt-get update
- sudo apt-get install nodejs
- sudo apt-get install npm
- sudo apt-get install software-properties-common
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get update
- sudo bash tools/setup/install_geth_1_8_3.sh
- geth version
install:
- npm install
- npm install -g mocha
before_script:
- mkdir -p dynamodb
- export AUTO_SCALE_DYNAMO=0
- export OS_CACHING_ENGINE=none
- wget https://s3.ap-south-1.amazonaws.com/dynamodb-local-mumbai/dynamodb_local_latest.zip -O ./dynamodb/dynamodb_local_latest.zip
- unzip ./dynamodb/dynamodb_local_latest.zip
- nohup java -Djava.library.path=./dynamodb/DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb &
- sleep 30
script:
- export OPENST_PLATFORM_PATH=$(pwd)
- export OST_DEBUG_ENABLED=1
- node tools/setup/index.js -s fresh_setup
- node tools/setup/index.js -s generate_addresses
- node tools/setup/index.js -s init_value_chain
- node tools/setup/index.js -s st_contract
- node tools/setup/index.js -s fund_users_with_st
- node tools/setup/index.js -s deploy_value_chain
- node tools/setup/index.js -s dynamo_db_create_shards
- node tools/setup/index.js -s init_utility_chain
- node tools/setup/index.js -s deploy_utility_chain
- node tools/setup/index.js -s snm_intercomm
- node tools/setup/index.js -s snmp_intercomm
- node tools/setup/index.js -s st_prime_mint
- node tools/setup/index.js -s stop_utility_services
- node tools/setup/index.js -s stop_value_services
- source $HOME/openst-setup/openst_env_vars.sh
- nohup node tools/setup/start_value_services.js ~/openst-setup/openst_platform_config.json </dev/null >/dev/null 2>&1 &
- sleep 30
- nohup node tools/setup/start_utility_services.js ~/openst-setup/bin/utility-chain-1000/openst_platform_config.json </dev/null >/dev/null 2>&1 &
- sleep 30
- source $HOME/openst-setup/openst_env_vars.sh
- node tools/setup/branded_token/register.js "ACME Coin" "ACME" 10
- node tools/setup/branded_token/mint.js "ACME" 1000000000000000000000
- mocha --timeout 120000 test/* --exit
after_script:
- kill $(ps aux | grep 'tools/setup/start_services.js' | awk '{print $2}')
- kill $(ps aux | grep 'DynamoDBLocal.jar' | awk '{print $2}')
- rm -rf dynamodb