forked from maxmind/geoip-api-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 1.29 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
---
sudo: false
language: php
dist: trusty
matrix:
include:
- php: '5.4'
- php: '5.5'
- php: '5.6'
- php: '7.0'
- php: '7.1'
- php: '7.2'
env:
- RUN_SNYK=1
before_install:
- composer self-update
- composer install --dev -n --prefer-source
- phpenv rehash
- mkdir -p build/logs
- "if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then sudo apt-get install -y nodejs; npm install -g snyk; fi"
install:
- "if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then snyk test --org=maxmind; fi"
script:
- ./vendor/bin/phpunit -c phpunit.xml.dist
after_script:
- php vendor/bin/coveralls
after_success:
- "if [[ $RUN_SNYK && $SNYK_TOKEN && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then snyk monitor --org=maxmind --project-name=maxmind/geoip-api-php; fi"
notifications:
email:
on_failure: always
on_success: change
recipients:
- dev-ci@maxmind.com
slack:
rooms:
secure: "YD9FzE5R5vdRdeBgDa+j5oUNTy6mfZWJP1VVPgSGHLHSMerbsatUcRbmO3rf0A9in7MA+EnAjAl2RCIrJAPgyh1V449x4kK0oykLNiwk13PC3D5gJODmfiQlokHn2FlRwY52DG2NsYg7WWkMbNUjfcLVi8pLm4mc9vPUf7asg+4=\n"
env:
global:
secure: "ihgw7G6OzZGDleXkwTfW6x50ksVRwAqNsK3n9ZWBcAinmU6gtKbqxTX0WSlQUDTA4BllDC1xkxR3IZseqGd/otRyaJVxnIAe+0u0KrYKpY+HppxDX2uqER9QUqNwN6u5SNYbJRNMib7r14r14DiS/l9DLECcipOZRD3stiVIras="