Skip to content

Commit

Permalink
Merge branch 'gitlab-integration' into 'master'
Browse files Browse the repository at this point in the history
Gitlab integration

See merge request ip/feedback-data-encrypter-bundle!4
  • Loading branch information
Aymeric Poude committed Apr 20, 2018
2 parents 69ef264 + 31437e7 commit 715ba75
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
stages:
- test
- build

test:php5:
stage: test
script:
- echo "Running tests"
- export SYMFONY_ENV=test
- rm -rf ./vendor/*
- rm -rf ./var/cache/*
- rm -rf ./var/logs/*
- composer install -o --no-dev
- phpunit --configuration phpunit.xml.dist --coverage-text
tags:
- test

build_on_s3:
stage: build
script:
- echo "Building the app"
- export SYMFONY_ENV=test
- rm -rf ./vendor/*
- rm -rf ./var/cache/*
- rm -rf ./var/logs/*
- composer install -o --no-dev
- echo "Push to S3 Bucket"
- tar -czf /tmp/$CI_PIPELINE_ID-$CI_COMMIT_SHA.tar.gz --exclude=app/config/parameters.yml --exclude=var/cache/* --exclude=var/logs* --exclude=.git --exclude=.gitignore --warning=no-file-changed .
- aws s3 cp /tmp/$CI_PIPELINE_ID-$CI_COMMIT_SHA.tar.gz s3://$S3_BUCKET_NAME/$CI_PROJECT_PATH/
- rm /tmp/$CI_PIPELINE_ID-$CI_COMMIT_SHA.tar.gz
tags:
- build
dependencies:
- test:php5
environment:
name: S3
url: https://s3.console.aws.amazon.com/s3/buckets/$S3_BUCKET_NAME/$CI_PROJECT_PATH/
File renamed without changes.

0 comments on commit 715ba75

Please sign in to comment.