File tree Expand file tree Collapse file tree 7 files changed +55
-3
lines changed
php-codeception-acceptance Expand file tree Collapse file tree 7 files changed +55
-3
lines changed Original file line number Diff line number Diff line change 1+ composer.phar
2+ vendor
Original file line number Diff line number Diff line change 1+ -include ../.env
2+
3+ composer :
4+ ./install.sh
5+
6+ update :
7+ php composer.phar update
8+
9+ install :
10+ php composer.phar install
11+
12+ test :
13+ API_KEY=$(API_KEY ) php ./vendor/bin/codecept run --steps
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ EXPECTED_CHECKSUM=" $( php -r ' copy("https://composer.github.io/installer.sig", "php://stdout");' ) "
4+ php -r " copy('https://getcomposer.org/installer', 'composer-setup.php');"
5+ ACTUAL_CHECKSUM=" $( php -r " echo hash_file('sha384', 'composer-setup.php');" ) "
6+
7+ if [ " $EXPECTED_CHECKSUM " != " $ACTUAL_CHECKSUM " ]
8+ then
9+ >&2 echo ' ERROR: Invalid installer checksum'
10+ rm composer-setup.php
11+ exit 1
12+ fi
13+
14+ php composer-setup.php --quiet
15+ RESULT=$?
16+ rm composer-setup.php
17+ exit $RESULT
Original file line number Diff line number Diff line change 1+ composer.phar
12vendor
Original file line number Diff line number Diff line change 11-include ../.env
22
3- docker :
4- docker build -t php --build-arg API_KEY= $( API_KEY ) . && docker run php
3+ composer :
4+ ./install.sh
55
66update :
77 php composer.phar update
88
9- test :
9+ install :
1010 php composer.phar install
11+
12+ test :
1113 API_KEY=$(API_KEY ) ./vendor/bin/phpunit test
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ EXPECTED_CHECKSUM=" $( php -r ' copy("https://composer.github.io/installer.sig", "php://stdout");' ) "
4+ php -r " copy('https://getcomposer.org/installer', 'composer-setup.php');"
5+ ACTUAL_CHECKSUM=" $( php -r " echo hash_file('sha384', 'composer-setup.php');" ) "
6+
7+ if [ " $EXPECTED_CHECKSUM " != " $ACTUAL_CHECKSUM " ]
8+ then
9+ >&2 echo ' ERROR: Invalid installer checksum'
10+ rm composer-setup.php
11+ exit 1
12+ fi
13+
14+ php composer-setup.php --quiet
15+ RESULT=$?
16+ rm composer-setup.php
17+ exit $RESULT
You can’t perform that action at this time.
0 commit comments