-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (47 loc) · 1.72 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
sudo: required
services:
- docker
before_install:
- openssl aes-256-cbc -K $encrypted_4ac443e3798c_key -iv $encrypted_4ac443e3798c_iv
-in .travis/id_rsa.enc -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
- eval $(ssh-agent)
- ssh-add ~/.ssh/id_rsa
- cp .travis/ssh_config ~/.ssh/config
- git config --global user.name "cloud8little"
- git config --global user.email "[email protected]"
install:
- git clone [email protected]:superboyiii/NEO-TEST.git ./neo-test
- cd ./neo-test/
- git checkout packtest
- cd ..
- docker build -f consensus-container/Dockerfile -t consensus .
- docker build -f ordinary-container/Dockerfile -t ordinary .
- docker network create --driver bridge --subnet=172.18.12.0/16 --gateway=172.18.1.1
neonet
jobs:
include:
- stage: Build-Stage
name: build docker image
script: echo "Finish Build Image"
- stage: Test-Stage
name: cli test normal
script:
- docker run -d --name cns --network=neonet --ip 172.18.12.1 consensus
- docker run --name cli_test --network=neonet --ip 172.18.12.2 ordinary ./run_test.sh
test_cli normal
- script:
- docker run -d --name cns --network=neonet --ip 172.18.12.1 consensus
- docker run --name cli_test --network=neonet --ip 172.18.12.2 ordinary ./run_test.sh
test_cli abnormal
name: cli test abnormal
- script:
- docker run -d --name cns --network=neonet --ip 172.18.12.1 consensus
- docker run --name rpc_test --network=neonet --ip 172.18.12.2 ordinary ./run_test.sh
test_rpc normal
name: rpc test normal
- script:
- docker run -d --name cns --network=neonet --ip 172.18.12.1 consensus
- docker run --name rpc_test --network=neonet --ip 172.18.12.2 ordinary ./run_test.sh
test_rpc abnormal
name: rpc test abnormal