File tree 6 files changed +15
-14
lines changed
6 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ before_script:
42
42
- phpenv config-add extra_php_config.ini
43
43
script :
44
44
- ./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
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/phar-testing-autoload.php
52
52
- if [[ $USE_PSALM -eq 1 ]]; then composer require --with-all-dependencies --dev "vimeo/psalm:dev-master"; fi
53
53
- if [[ $USE_PSALM -eq 1 ]]; then composer install; fi
54
54
- 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