-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 2.26 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
language: node_js
services:
- mongodb
- docker
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
- docker pull docker.elastic.co/elasticsearch/elasticsearch:7.5.0
- docker ps -a
- docker run -p 9200:9200 -p 9300:9300 -d -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.5.0
- until curl --silent -XGET --fail http://localhost:9200; do printf '.'; sleep 1; done
before_script:
- sleep 15
node_js:
- 10
script:
- npm test
- sonar-scanner
addons:
sonarcloud:
organization: climatetree
token:
secure: wVhmUYrxGjcw59+TsDv73iOM5lwfrao+IUZpX7xUwJl2unOHrJvPU70+sPT4nYnYyKVgu93W8m/grKINntoFeUl+P9IWPwumeRLuKGvxyaD7G9FzET6upkZGOcHmZy6K6bVVpNS0FxVx9oLCTFG4RCCKjJg1URO6DGduyNaftwjqgM7vfZBcdaCcXVtroGAtdYN9nsdHBvdJMfJ3ospQAT1QTMm0xD0ONkf/dlxoLBBzmc3kUaDfxk7+IFLzIDz+MjvSt3CuZd9tzfwThByPNkFB8AeQw4ivcie1juYUSY8ushEm3TI2BrPAdPmFJ3G5JhqVIU1fHljMDjiLXerXIEX8/WoQqwsGF6kr+ba3TT5YUPPyqz9A75xYk4NNeA0ZoqnUHBuBW7PpdjOuzojckJDi32ryIT5u/sysueruOTIn712gdXWN9N+AHmNryX5qAmrD7gIHzIQRHuyCeysCBBwci868F54jCsV6G+D2ncjRDi0pNoo4iSsflLbK8NqknKE7iCU1vXRzvHeCPlNobFo7ML2fpWh6A7Xv7JOS6emfggcIYCKI9EdbApzLYIbrkkz9AufmRX0/CHbvWJLkyJKlv604u4GSoZMjO6oH0CtHqUPSpg58t3ebRxNDXOrq6hnzF+RSSQuK9khoOhzdtyavdl5Ld+aYuRTMBsqXvhU=
deploy:
provider: script
script: bash ./docker_push.sh
on:
branch: master
notifications:
slack:
secure: LnH1z7oVD3AmUt5ufq8D44PF4pbw8XbDVvlhZsKlvo4rOpXt7e+nRgor+4PJOOX3ak60lY7K2PWkGTdOiJumZo2yXoC9fGTylhnnt0ry42/1WpjAFNBUNOMgPjVyOok8ATpTTdqIlrNbthf61kxm80+Ger//c7yAyQogYmDrgXSvYd2FqsfwF8lpBsynrUAyMxAywv4WQTIO+yF9ImjK9vkeerx+OigpLVN3J9OBfP9SFfNcp43tJmKP9uaPhDeEVgQDsZhWRJT4u02z8am1gzckjb09gpy0XVUIJYVl3j6okieGpRR+iqeHZm4jAFp7ZlkQsSpHObDUaknXZ3W7NYEnVj36BowXgR/16zeMmw0HUTeRqbl4RCGUcKeqPIQFIaHTCEbE1XLztWK47yUkszbhz74FfpWqwpn8qhQTQcNQ9OasxHNbCJOcHmKINZgqnCmAj8586bWBH9KOyDO4g+SS54wAWm31rRDHKq97RHsHy6nHrKckgWh/JREwlkeVtjl/Cai1pv7R3/k21oQdEz8X+LRx/cmHql0Zg67vcrZUVJ1mkQifS7KfTxmmp9dCVG7Iy+gPPCLaVT5MB61mWhMTpcPqCF2kFvYIvfar+B5AJzJDSHquXLLtQEle9ctXZi8CTWviIhLwgXMxLBvpVD0qGb4zUCrVG5+eEeDmmrk=
on_success: never
on_failure: always