Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
4efb85b0
Commit
4efb85b0
authored
7 years ago
by
Alexis Ragot
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'master'
test build See merge request !58
parents
41341980
6643bed7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+54
-35
54 additions, 35 deletions
.gitlab-ci.yml
with
54 additions
and
35 deletions
.gitlab-ci.yml
+
54
−
35
View file @
4efb85b0
...
...
@@ -7,42 +7,61 @@ variables:
POSTGRES_PASSWORD
:
"
"
stages
:
-
test
-
build
before_script
:
-
apt-get update > /dev/null
-
apt-get install wget -yqq > /dev/null
-
apt-get install npm -yqq > /dev/null
-
apt-get install git -yqq > /dev/null
-
bash ci/docker_install_php.sh > /dev/null
-
bash ci/docker_install_database.sh > /dev/null
-
wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig
-
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
-
php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
-
php composer-setup.php
-
php -r "unlink('composer-setup.php'); unlink('installer.sig');"
-
php composer.phar install
-
mv composer.phar /usr/local/bin/composer
-
chmod +x /usr/local/bin/composer
job_php-7.0
:
image
:
php:7.0-apache
stage
:
test
job1
:
stage
:
build
script
:
-
mkdir -p /var/www/html/
-
cp -R /builds/maarch/MaarchCourrier/ /var/www/html/
-
cd /var/www/html/MaarchCourrier
-
mkdir -p /var/www/html/MaarchCourrier
-
composer -n install
-
curl -sL https://deb.nodesource.com/setup_7.x | bash -
-
apt-get install -yqq nodejs
-
npm install npm@latest -g
-
npm set registry https://registry.npmjs.org/
-
npm install
-
sed 's/<databaseserver>.*<\/databaseserver>/<databaseserver>postgres<\/databaseserver>/;s/<databasepassword>.*<\/databasepassword>/<databasepassword><\/databasepassword>/;s/<databasename>.*<\/databasename>/<databasename>MaarchCourrier<\/databasename>/;s/<databaseuser>.*<\/databaseuser>/<databaseuser>maarch<\/databaseuser>/' apps/maarch_entreprise/xml/config.xml.default > apps/maarch_entreprise/xml/config.xml
-
curl --location -s --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
-
chmod +x /usr/local/bin/phpunit
#- cd App/MaarchRM
-
phpunit --coverage-text --colors=never -c phpunit.xml
-
apt-get update > /dev/null
-
apt-get install git -yqq > /dev/null
-
cd ${CI_PROJECT_DIR}
-
git clone --depth 1 -b "17.06" https://labs.maarch.org/maarch/LibsExtMaarchCourrier temp \
-
cp -R temp/* . \
-
rm -Rf temp \
-
tar -zcvf MaarchCourrier.tar.gz ${CI_PROJECT_DIR}
artifacts
:
name
:
"
${CI_JOB_STAGE}_${CI_COMMIT_TAG}"
path
:
-
/builds/maarch/MaarchCourrier
only
:
-
develop
\ No newline at end of file
-
master
-
tags
#before_script:
# - apt-get update > /dev/null
# - apt-get install wget -yqq > /dev/null
# - apt-get install npm -yqq > /dev/null
# - apt-get install git -yqq > /dev/null
# - bash ci/docker_install_php.sh > /dev/null
# - bash ci/docker_install_database.sh > /dev/null
# - wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig
# - php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
# - php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
# - php composer-setup.php
# - php -r "unlink('composer-setup.php'); unlink('installer.sig');"
# - php composer.phar install
# - mv composer.phar /usr/local/bin/composer
# - chmod +x /usr/local/bin/composer
#
#job_php-7.0:
# image: php:7.0-apache
# stage: test
# script:
# - mkdir -p /var/www/html/
# - cp -R /builds/maarch/MaarchCourrier/ /var/www/html/
# - cd /var/www/html/MaarchCourrier
# - mkdir -p /var/www/html/MaarchCourrier
# - composer -n install
# - curl -sL https://deb.nodesource.com/setup_7.x | bash -
# - apt-get install -yqq nodejs
# - npm install npm@latest -g
# - npm set registry https://registry.npmjs.org/
# - npm install
# - sed 's/<databaseserver>.*<\/databaseserver>/<databaseserver>postgres<\/databaseserver>/;s/<databasepassword>.*<\/databasepassword>/<databasepassword><\/databasepassword>/;s/<databasename>.*<\/databasename>/<databasename>MaarchCourrier<\/databasename>/;s/<databaseuser>.*<\/databaseuser>/<databaseuser>maarch<\/databaseuser>/' apps/maarch_entreprise/xml/config.xml.default > apps/maarch_entreprise/xml/config.xml
# - curl --location -s --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
# - chmod +x /usr/local/bin/phpunit
# #- cd App/MaarchRM
# - phpunit --coverage-text --colors=never -c phpunit.xml
# only:
# - develop
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Giovannoni Laurent
@lgi
mentioned in commit
a1bc4749
·
7 years ago
mentioned in commit
a1bc4749
mentioned in commit a1bc4749b374c8ef777518344b73e430e3a8f3ba
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment