File tree 7 files changed +49
-25
lines changed
7 files changed +49
-25
lines changed Original file line number Diff line number Diff line change 9
9
phpunit.phar
10
10
phpunit.phar.asc
11
11
test /unit /File /tmp
12
+ test /.phpunit.result.cache
12
13
.idea
Original file line number Diff line number Diff line change @@ -5,30 +5,52 @@ matrix:
5
5
fast_finish : true
6
6
include :
7
7
- php : " 5.6"
8
- env : USE_PSALM=0
8
+ env :
9
+ - USE_PSALM=0
10
+ - BUILD_PHAR=0
9
11
- php : " 7.0"
10
- env : USE_PSALM=0
12
+ env :
13
+ - USE_PSALM=0
14
+ - BUILD_PHAR=0
11
15
- php : " 7.1"
12
- env : USE_PSALM=0
16
+ env :
17
+ - USE_PSALM=0
18
+ - BUILD_PHAR=0
13
19
- php : " 7.2"
14
- env : USE_PSALM=0
20
+ env :
21
+ - USE_PSALM=0
22
+ - BUILD_PHAR=0
15
23
- php : " 7.3"
16
- env : USE_PSALM=0
24
+ env :
25
+ - USE_PSALM=0
26
+ - BUILD_PHAR=0
17
27
- php : " 7.4"
18
- env : USE_PSALM=1
28
+ env :
29
+ - USE_PSALM=1
30
+ - BUILD_PHAR=0
19
31
- php : " 8.0"
20
32
# psalm currently doesn't like our \[#SensitiveParameter]s
21
- env : USE_PSALM=0
33
+ env :
34
+ - USE_PSALM=0
35
+ - BUILD_PHAR=0
22
36
- php : " 8.1"
23
37
# psalm currently doesn't like our \[#SensitiveParameter]s
24
- env : USE_PSALM=0
38
+ env :
39
+ - USE_PSALM=0
40
+ - BUILD_PHAR=1
25
41
- php : " 8.2"
26
- env : USE_PSALM=1
42
+ env :
43
+ - USE_PSALM=1
44
+ - BUILD_PHAR=1
27
45
dist : focal
28
46
- php : " nightly"
29
- env : USE_PSALM=1
47
+ env :
48
+ - USE_PSALM=1
49
+ - BUILD_PHAR=1
30
50
- php : " hhvm"
31
- env : USE_PSALM=1
51
+ env :
52
+ - USE_PSALM=1
53
+ - BUILD_PHAR=1
32
54
allow_failures :
33
55
- php : " nightly"
34
56
- php : " hhvm"
@@ -42,13 +64,13 @@ before_script:
42
64
- phpenv config-add extra_php_config.ini
43
65
script :
44
66
- ./test.sh
45
- # - mkdir /tmp/box
46
- # - chmod 755 /tmp/box
47
- # - curl -LSs https://github.com/box-project/box/releases/download/4.3.8/box.phar -o /tmp/box/box
48
- # - chmod 755 /tmp/box/box
49
- # - PATH="$PATH:/tmp/box/" which box
50
- # - PATH="$PATH:/tmp/box/" make -C dist/ build-phar
51
- # - ./test.sh dist/defuse-crypto.phar
67
+ - if [[ $BUILD_PHAR -eq 1 ]]; then mkdir /tmp/box; fi
68
+ - if [[ $BUILD_PHAR -eq 1 ]]; then chmod 755 /tmp/box; fi
69
+ - if [[ $BUILD_PHAR -eq 1 ]]; then curl -LSs https://github.com/box-project/box/releases/download/4.3.8/box.phar -o /tmp/box/box; fi
70
+ - if [[ $BUILD_PHAR -eq 1 ]]; then chmod 755 /tmp/box/box; fi
71
+ - if [[ $BUILD_PHAR -eq 1 ]]; then PATH="$PATH:/tmp/box/" which box; fi
72
+ - if [[ $BUILD_PHAR -eq 1 ]]; then PATH="$PATH:/tmp/box/" make -C dist/ build-phar; fi
73
+ - if [[ $BUILD_PHAR -eq 1 ]]; then ./test.sh dist/phar-testing-autoload.php; fi
52
74
- if [[ $USE_PSALM -eq 1 ]]; then composer require --with-all-dependencies --dev "vimeo/psalm:dev-master"; fi
53
75
- if [[ $USE_PSALM -eq 1 ]]; then composer install; fi
54
76
- if [[ $USE_PSALM -eq 1 ]]; then vendor/bin/psalm; fi
Original file line number Diff line number Diff line change 26
26
"php" : " >=5.6.0"
27
27
},
28
28
"require-dev" : {
29
- "phpunit /phpunit" : " ^5|^6|^7|^8|^9|^10 " ,
30
- "yoast /phpunit-polyfills " : " ^2.0.0 "
29
+ "yoast /phpunit-polyfills " : " ^2.0.0 " ,
30
+ "phpunit /phpunit" : " ^5|^6|^7|^8|^9|^10 "
31
31
},
32
32
"bin" : [
33
33
" bin/generate-defuse-key"
Original file line number Diff line number Diff line change 31
31
32
32
defuse-crypto.phar : dist/box.json composer.lock
33
33
cp dist/box.json .
34
- php -d phar.readonly=0 $(box ) build -c box.json -v
34
+ php $(box ) compile -c box.json -v
35
35
36
36
composer.lock :
37
37
$(composer ) config autoloader-suffix $(gitcommit )
Original file line number Diff line number Diff line change 15
15
"exclude" : " other"
16
16
}
17
17
],
18
- "compactors" : [
19
- " Herrera\\ Box\\ Compactor\\ Php"
20
- ],
21
18
"main" : " vendor/autoload.php" ,
22
19
"output" : " defuse-crypto.phar" ,
23
20
"shebang" : false ,
Original file line number Diff line number Diff line change
1
+ <?php
2
+ require 'defuse-crypto.phar ' ;
3
+ require realpath (dirname (__FILE__ ) . '/../vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php ' );
4
+ ?>
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ Test the `.phar`:
141
141
142
142
```
143
143
cd ../
144
- ./test.sh dist/defuse-crypto.phar
144
+ ./test.sh dist/phar-testing-autoload.php
145
145
```
146
146
147
147
Sign the ` .phar ` :
You can’t perform that action at this time.
0 commit comments