-
Notifications
You must be signed in to change notification settings - Fork 45
/
.travis.yml
117 lines (92 loc) · 2.78 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
sudo: required
language: go
go:
- 1.13.x
before install:
- sudo docker run --rm -it -d -p 8082:8080 -p 9082:9080 -p 8000:8000 -v ~/dgraph:/dgraph fogflow/dgraph:latest
- sudo docker run --rm -it -d --name mongodb -d mongo:3.4
- sudo docker run --rm -it -d --name orion1 --link mongodb:mongodb -p 1026:1026 fiware/orion -dbhost mongodb
- docker ps -a
install:
- docker --version
- echo "build discovery"
- cd discovery
- pwd
- sh build
- echo "build broker"
- cd ../broker
- pwd
- sh build
- echo "build worker"
- cd ../worker
- pwd
- sh build
- echo "build master"
- cd ../master
- pwd
- sh build
- echo "build designer"
- cd ../master
- pwd
- sh build
- sudo apt-get update
- sudo apt-get install jq
- sudo apt-get install python-pip
- pip -V
- sudo pip install --upgrade pip
- pip install Flask
- pip install requests
- pip install -U pytest
- sudo apt-get install curl
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
- curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
- source ~/.profile
- nvm install 12.19.1
- node -v
- npm -v
- echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
- wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install rabbitmq-server
- sudo update-rc.d rabbitmq-server defaults
- sudo service rabbitmq-server start
- sudo systemctl enable rabbitmq-server
- sudo systemctl start rabbitmq-server
- sudo rabbitmqctl add_user admin mypass
- sudo rabbitmqctl set_user_tags admin administrator
- sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
- echo "Done"
before_script:
- go get -u golang.org/x/lint/golint
script:
- cd ../
- cp release/validation/config.json ./discovery/
- cp release/validation/config.json ./broker/
- cp release/validation/config.json ./master/
- cp release/validation/config.json ./worker/
- cp release/validation/config.json ./designer/
- cd discovery/
- go get; go build
- screen -d -m ./discovery
- cd ../broker/
- go get; go build
- screen -d -m ./broker
- cd ../master/
- go get; go build
- screen -d -m ./master
- cd ../designer/
- npm install
- screen -d -m node main.js
- cd ../test/UnitTest/
- screen -d -m python accumulator.py
- cd ../UnitTest/v2/
- pytest -s -v
- cd ../v1/
- pytest -s -v
- cd ../NGSI-LD/
- pytest -s -v
- cd ../persistance/
- pytest -s -v
- echo "Testing Done !!!"
notifications:
email: false