forked from Hackmanit/HTTP-Secure-Header-Scanner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (36 loc) · 978 Bytes
/
.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
language: php
php:
- "7.2"
cache:
directories:
- "./vendor"
dist: trusty
before_script:
- composer install --no-interaction
script:
- ./vendor/bin/phpunit
- docker build -t hshs-domxss-scanner .
before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
deploy:
- provider: script
skip_cleanup: true
on:
branch: develop
script: >-
docker tag hshs-domxss-scanner siwecos/hshs-domxss-scanner:develop &&
docker push siwecos/hshs-domxss-scanner:develop
- provider: script
skip_cleanup: true
on:
branch: master
script: >-
docker tag hshs-domxss-scanner siwecos/hshs-domxss-scanner:latest &&
docker push siwecos/hshs-domxss-scanner:latest
- provider: script
skip_cleanup: true
on:
tags: true
script: >-
docker tag hshs-domxss-scanner siwecos/hshs-domxss-scanner:$TRAVIS_TAG &&
docker push siwecos/hshs-domxss-scanner:$TRAVIS_TAG