forked from ekapusta/oauth2-esia
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
64 lines (54 loc) · 2.05 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
dist: trusty
sudo: required
language: php
matrix:
include:
- php: "5.6"
env: ESIA_CLIENT_AUTH_METHOD=get
ESIA_CLIENT_ID=EKAP01
ESIA_SIGNER_CLASS=Ekapusta\\OAuth2Esia\\Security\\Signer\\OpensslCli
ESIA_CERTIFICATE=ekapusta.gost.test.cer
ESIA_PRIVATE_KEY=ekapusta.gost.test.key
ESIA_REMOTE_PUBLIC_KEY=esia.test.public.key
ESIA_REMOTE_ALGORYTHM_ID=RS256
ESIA_REMOTE_SIGNER_CLASS=Lcobucci\\JWT\\Signer\\Rsa\\Sha256
- php: "7.1"
env: ESIA_CLIENT_AUTH_METHOD=post
ESIA_CLIENT_ID=EKAP01
ESIA_SIGNER_CLASS=Ekapusta\\OAuth2Esia\\Security\\Signer\\OpensslPkcs7
ESIA_CERTIFICATE=ekapusta.rsa.test.cer
ESIA_PRIVATE_KEY=ekapusta.rsa.test.key
ESIA_REMOTE_PUBLIC_KEY=esia.test.public.key
ESIA_REMOTE_ALGORYTHM_ID=RS256
ESIA_REMOTE_SIGNER_CLASS=Ekapusta\\OAuth2Esia\\Security\\JWTSigner\\OpenSslCliJwtSigner
- php: "7.3"
env: ESIA_CLIENT_AUTH_METHOD=get
ESIA_CLIENT_ID=500201
ESIA_SIGNER_CLASS=Ekapusta\\OAuth2Esia\\Security\\Signer\\OpensslCli
ESIA_CERTIFICATE=ekapusta.gost2012.test.cer
ESIA_PRIVATE_KEY=ekapusta.gost2012.test.key
ESIA_REMOTE_PUBLIC_KEY=esia.gost.test.public.key
ESIA_REMOTE_ALGORYTHM_ID=GOST3410_2012_256
ESIA_REMOTE_SIGNER_CLASS=Ekapusta\\OAuth2Esia\\Security\\JWTSigner\\OpenSslCliJwtSigner
XDEBUG_MODE=coverage
services:
- docker
branches:
except:
- master
- /^[0-9]/
install:
- docker pull rnix/openssl-gost
- composer install
- (cd tests/AuthenticationBot && npm install --no-progress)
before_script:
- export ESIA_CLIENT_OPENSSL_TOOL_PATH="docker run --rm -i -v $(pwd):$(pwd) -v /tmp:/tmp -w $(pwd) rnix/openssl-gost openssl"
- export ESIA_LOGIN_ATTEMPTS=3
script:
- vendor/bin/phpunit --debug --coverage-clover=.coverage.xml
after_success:
- vendor/bin/coveralls --coverage_clover=.coverage.xml --json_path=.coveralls.json --verbose
cache:
directories:
- vendor
- tests/AuthenticationBot/node_modules