This repository has been archived by the owner on Nov 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
54 lines (43 loc) · 2.41 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
sudo: required
language: node_js
node_js:
- node
services:
- mongodb
- docker
cache:
directories:
- node_modules
before_install:
- npm install -g newman
- npm install
install:
- sudo docker build -t test .
before_script:
- sudo docker run -d --net=host -e PROXY_DB=$PROXY_DB -e PROXY_JWT_SECRET=$PROXY_JWT_SECRET -e PROXY_SALT=$PROXY_SALT
-e PROXY_ENV=$PROXY_ENV test
script:
- sleep 45
- npm test
after_success:
- sudo docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- sudo docker tag test miton18/web-proxy:latest
- sudo docker push miton18/web-proxy:latest
- if [ -n "$TRAVIS_TAG" ]; then sudo docker tag test "miton18/web-proxy:$TRAVIS_TAG"; fi
- if [ -n "$TRAVIS_TAG" ]; then sudo docker push "miton18/web-proxy:$TRAVIS_TAG"; fi
notifications:
hipchat:
notify: true
on_pull_requests: true
template:
- "#%{build_number} (%{branch} : %{author}): %{message}"
rooms:
secure: wLG9HdqI6kz1HKKsrc1uVdOqPhIo/CylpFtJZ0j+qdoTOqJqNT2AhEqsjyXiCerv59UtEaqtGH6B5XPo1Ww5mcie5vBOss4ikQp3k9a3Xtl8E+PIW0V/ePDpKuRROcr0g/l/XldQLpB8PXHsu0MT0G9qYRwBWSq9mYhPVZzs2BiOFvIHjcS14kQrM3geHg5bWfsOAyuTlGeJOnt2gwTyIdG5BNhfr7OwmQzCV+gYowCNIcDEVGvb4INMVOE0LQ9Bq6BWFVIIz0EmutMcDpxzHSg2YYaCmo/IZRZZLAQMdIrZ0iEsx98jfmjjkS1PIMYrut8X/RmsALImkxVNn+Tnd7hAuLC1OHj6TKNtg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