ohdearapp / gitlab-ci-pipeline-for-laravel Goto Github PK
View Code? Open in Web Editor NEWA Gitlab CI/CD pipeline optimized for use with Laravel applications
Home Page: https://ohdear.app
A Gitlab CI/CD pipeline optimized for use with Laravel applications
Home Page: https://ohdear.app
Hi.
If we have database tests in testing stage, phpunit test will be fail. Because no database seeding in this test.
How ohdearapp pass phpunit? Adding php artisan migrate:fresh --seed
script could be solve this issue.
thanks
More infos: https://github.com/sensiolabs/security-checker
Im getting an error on the build for seeding:
9 $ mysql --version 30 mysql Ver 15.1 Distrib 10.3.18-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 31 $ php artisan migrate:fresh --seed 32 In Connection.php line 669: 33 34 SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.17.0.4' (using pa 35 ssword: YES) (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE') 36 37 In Connector.php line 70: 38 39 SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.17.0.4' (using pa 40 ssword: YES) 41 42 Uploading artifacts... 00:03 43 storage/logs: found 3 matching files 44 WARNING: db.sql: no matching files 45 Uploading artifacts to coordinator... ok id=391733588 responseStatus=201 Created token=xvYwHHTo 46 ERROR: Job failed: exit code 1
Hi, have you guys upgraded to PHP 7.4 yet? We're using the image edbizarro/gitlab-ci-pipeline-php:7.3
but it seems that the author is still having problems with his PHP 7.4 build. Would you have any recommendations for a PHP 7.4 image?
Thanks!
Hi, today I wanted to run the pipeline and it failed at the security
stage.
I found out that the problem was caused by an old composer version.
Do you maybe have an idea how to solve this?
I took a look at the repo of the used plugin and it turned out that it isn't maintained anymore and got replaced by fabpot/local-php-security-checker
.
Maybe it would be a good idea to update the pipeline accordingly?
I tried to do it by fetching the binary from the new go version but sadly the binary failed to execute on my local machine everytime I tried to run it.
sensiolabs:
stage: security
script:
- 'curl -s https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest | grep "browser_download_url.*linux_amd64" | cut -d: -f 2,3 | tr -d \" | wget -o local-php-security-checker -qi -'
- chmod +x local-php-security-checker
- ./local-php-security-checker
dependencies: []
cache:
paths:
- security-checker/
Regards,
Alex
Hello,
I know it's not really an issue but I'm tryig to add mysql8.0 to the ci config and I have a hard time doing it. I created a post on the forum of Gitlab but no answer so far.
Do you have some idea of what I could do to achieve it ?
With my try, mysql and php are not working and I don't know how to find a solution.
I explained everything in the post here :
https://forum.gitlab.com/t/gitlab-ci-php7-3-mysql8-0-result-with-command-not-found/29755
Any help would be greatly appreciated.
Thanks !
If you want caches to persist between concurrent jobs, on multiple server, you need to use remote S3 cache handler.
https://docs.gitlab.com/runner/configuration/autoscale.html#distributed-runners-caching
Artifacts are not for persisting cache between jobs.
Getting
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')
running php artisan migrate:fresh --seed
.
That's strange cause I'm using the container service name as host. Any idea?
I tried to use this ci file for my laravel app, but stuck when pushing to gitlab .Here is the specific errors.
$ php -v
0:00 bash: line 87: php: command not found
Uploading artifacts...
00:00 Runtime platform arch=amd64 os=linux pid=6901 revision=f100a208 version=11.6.0
WARNING: vendor/: no matching files
WARNING: .env: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.