-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 2.08 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
language:
- node_js
- php
php:
- 7.1
install:
- npm install
script:
- composer install
cache:
directories:
- node_modules
- vendor
after_success:
- ENVIRONMENT_NAME=$TRAVIS_BRANCH
- if [ "$TRAVIS_BRANCH" == "main" ]; then ENVIRONMENT_NAME=production; fi
- vendor/bin/coveralls -v
- vendor/bin/phpcs -n --standard=PSR1,PSR2 src/
- vendor/bin/phpcbf src/
before_deploy:
- echo "All unit tests passed; Preparing to deploy $TRAVIS_BRANCH"
deploy:
- provider: script
skip_cleanup: true
script: "./scripts/travis-deploy.sh $ENVIRONMENT_NAME"
on:
all_branches: true
condition: "$ENVIRONMENT_NAME =~ ^(development|qa|production)$"
after_deploy: echo "Successfully executed deploy trigger for $ENVIRONMENT_NAME"
env:
global:
- secure: WsqiVz6x1S9tKb2rMnr1T7xa/C54c4Nw1mI9ovdcYwmYeHAatuM1Wcur80byTlZSFof823R3N6ddYeAS4k0lF2tOg28HTOu4gCvPJ+QiBlNzo70E+cKlcKH2gBA+kWzXIqA9MA5qD4kqadLj2bbaAO6bFo1NVKpbNosRovB8o5jnVpZeyqiu4Z3FVVPclGC+1cTbgT4TRWee3BkkzhPR75sd/1Kj4s9yQS3QlTHKgYKNvjaOjrcKNnjyn4eQyVEjDZ2c9xmltpk6TXrM+fRrk9amv66bRPzOfNwSrhb/9px4f5QksiNyb52NHdavdDHQBL3LwIkkvoTwjHCpn43bMABTEn/WzMNA2LgDrTXfm92fM5wOk3yS6JouhrdBXERtufcl6lnbNjdcRBY0Jca711IDdjoVwP5I9RXHydv+zHK6ds0ielrV4+Xrjm66xcYQUiJR6sak59ANT9AP69RHGAwpsC+p57JQ92g5lfN6vyFbENwRrNMR7Dh9AsoZUHcSGoTO/REQaWcjuZGRHbasaykLsY1SWcAG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