-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
92 lines (82 loc) · 2.43 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
dist: trusty
sudo: required
language: php
php:
- 7.3
services:
- docker
cache:
apt: true
directories:
- $TRAVIS_BUILD_DIR/vendor
- $TRAVIS_BUILD_DIR/tests/node_modules
- $HOME/.composer/cache
- ~/.npm
- ~/.cache
env:
matrix:
- TEST_COUNTRY=argentina
- TEST_COUNTRY=brazil
- TEST_COUNTRY=chile
- TEST_COUNTRY=colombia
- TEST_COUNTRY=ecuador
- TEST_COUNTRY=mexico
- TEST_COUNTRY=peru
- TEST_COUNTRY=bolivia
before_install:
- nvm install stable
- nvm use stable
install:
- composer self-update --1
- composer update
- cd $TRAVIS_BUILD_DIR/tests && npm ci
- cd $TRAVIS_BUILD_DIR
script:
- bash ./tests/bin/test.sh
stages:
- unit
- admin_tests
- test
- release
- deploy
jobs:
include:
- stage: unit
env:
- TEST_COUNTRY=
script:
- ./vendor/bin/phpunit
- stage: admin_tests
env:
- TEST_COUNTRY=
script:
- bash ./tests/bin/admin-test.sh
- stage: release
script:
- bash <(curl -s https://codecov.io/bash)
- bash .scripts/before_deploy.sh
- cd $TRAVIS_BUILD_DIR
- zip -r /tmp/ebanx-payment-gateway-for-woocommerce ./* -x "*.git*" "*tests*" "*_vendor*"
env:
- TEST_COUNTRY=
deploy:
- provider: releases
api_key:
secure: Uqy38CcSLLpRN53FwIQN9v0SyLRvV6Q47B27dBoMDG9p6qR9W4Nx6xAxi9NJCwDQR15j+WcgkR3iL8R8EXjFNJOpqBvCoWzgQZSNQY8NIOlchNGpVSULgR0r/UE526zoAAnYPu1QeQNTSdDkOCJdggZTYDo+GKqlFw0pd0J6JevktgovZwwy5sMLummfGQVj6VuT38ZIqZQI2ZJaY9iLAJYtLfGpud2xs7PmrccmRH/sYinUJRl+IZxT00oxLMgkk9wryj4ShMcuabHOR9J/3imsYohCpcoxHioedHItfRlVIQoF5Ss73cD2E8XR4kfJIJtuezTnl7bAyRGj5VUUy0EBavi7IizyhrS2vAPq7VastJn0wsxFI7vo9QMF2N0kxCtNo8a3Z5NX3bHBVAISiGFr9ruw9j/Lp9Hi0z+jfc4STUb7FXL+kvB46M9PALghp6KtoYUsOaa7m9XDzzMm7Cb1A7Gd8zcAtEalL2sRBnIEcN4V+K9S76ENSf0N0L6PJjiYG+s1/EtmFJCZfHvOEjoNz0q16jebCmPvAsAHrbvHZ5oUaPt9mTxpjIjQpursZc0GhBCNWbx7A2KfONtlxKUP7XXPFuF89Qg4av15AMPX+LSBKsUN89a3Hoxv+nuyQR+WjPYTdqxeUFa1e2THGceey/0n/FwwPB4awM1Ohs0=
file: /tmp/ebanx-payment-gateway-for-woocommerce.zip
skip_cleanup: true
on:
tags: true
all_branches: true
- stage: deploy
script:
- bash .scripts/before_deploy.sh
env:
- TEST_COUNTRY=
deploy:
- provider: script
skip_cleanup: true
script: ./deploy.sh
on:
tags: true
all_branches: true