-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml.02
34 lines (31 loc) · 989 Bytes
/
.gitlab-ci.yml.02
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
stages:
- install
- test
- deploy
# Install dependencies
install_dependencies:
stage: install
image: php:5.6
script:
- apt-get update
- apt-get install -y libpng-dev libjpeg-dev libfreetype6-dev zip git
- docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include
- docker-php-ext-install gd
- curl -sS https://getcomposer.org/installer | php
- mv composer.phar /usr/local/bin/composer
- composer install
# Run tests (you can replace this with your actual testing script)
run_tests:
stage: test
image: php:5.6
script:
- vendor/bin/phpunit --configuration phpunit.xml.dist
# Deploy to production (you can modify this section based on your environment)
#deploy_to_production:
# stage: deploy
# script:
# - echo "Deploying to production server..."
# - ssh user@production-server 'cd /path/to/your/project && git pull origin master'
# - echo "Deployment completed"
# only:
# - master