Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Updated development stack and fixed CI. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk authored Jan 22, 2019
1 parent 1b4a980 commit 16c6620
Show file tree
Hide file tree
Showing 26 changed files with 81 additions and 939 deletions.
67 changes: 17 additions & 50 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,75 +1,41 @@
version: 2
aliases:

- &build
# Re-usable job to run different types of builds.
- &job-build
working_directory: /app
docker:
- image: singledigital/bay-circle:latest
environment: &environment
COMPOSER_ALLOW_SUPERUSER: 1
COMPOSE_PROJECT_NAME: mysite
COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml
INSTALL_SUGGEST: 0
BEHAT_PROFILE: ""
- image: &builder-image integratedexperts/ci-builder
environment:
INSTALL_NEW_SITE: 1
LAGOON_ENVIRONMENT_TYPE: ci
steps:
- attach_workspace:
at: /workspace
- checkout
# Init environment for development.
- run: if [ -f "./dev-init.sh" ] && [ ! "$DEV_TOOLS" ]; then ./dev-init.sh; fi
- setup_remote_docker:
docker_layer_caching: true
version: 17.06.0-ce
- run:
name: Composer validate
# @dev
command: composer validate --ansi --strict --no-check-all
- run:
name: Start containers
command: |
printenv
echo "COMPOSE_FILE=$COMPOSE_FILE" >> .env.local
echo "BEHAT_PROFILE=$BEHAT_PROFILE" >> .env.local
make docker-start
- run:
name: Copy files into container
command: docker cp -L /app/. $(docker-compose ps -q cli):/app/
- run:
name: Install dev dependencies
command: make install
- run:
name: Lint code
command: make lint
- run:
name: Prepare test fixtures
command: make install-site
- run:
name: Enable current module and dependencies
command: make install-module
- run:
name: Enable dev modules and dependencies
command: make install-dev
- run:
name: Run tests
command: |
make test-behat || make test-behat -- --rerun
- run: .circleci/build.sh
- run: .circleci/test.sh
- run:
name: Copy artifacts
command: |
mkdir -p /tmp/artifacts/behat
docker cp $(docker-compose ps -q cli):/app/screenshots /tmp/artifacts/behat
command: .circleci/test-artifacts.sh
when: always
- store_artifacts:
path: /tmp/artifacts

jobs:
build:
<<: *build
<<: *job-build

build_suggest:
<<: *build
<<: *job-build
docker:
- image: singledigital/bay-circle:latest
- image: *builder-image
environment:
<<: *environment
INSTALL_NEW_SITE: 1
LAGOON_ENVIRONMENT_TYPE: ci
INSTALL_SUGGEST: 1
BEHAT_PROFILE: "--profile=suggest"

Expand All @@ -78,3 +44,4 @@ workflows:
main:
jobs:
- build
- build_suggest
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

5 changes: 0 additions & 5 deletions .editorconfig

This file was deleted.

18 changes: 0 additions & 18 deletions .env

This file was deleted.

10 changes: 4 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Ignore files for distribution archives.

.gitattributes export-ignore
.gitignore export-ignore
.github export-ignore
.circleci export-ignore
.circleci/config.yml export-ignore
.env export-ignore
tests export-ignore
circle.yml export-ignore
composer.json export-ignore
composer.lock export-ignore
phpcs.xml export-ignore
phpunit.xml export-ignore
xdebug.sh export-ignore
dev-init.sh export-ignore
16 changes: 10 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
vendor
vendor-local
# To ignore OS temporary files use global .gitignore
# https://help.github.com/articles/ignoring-files/#create-a-global-gitignore

/composer.lock
build
/composer.build.json
/composer.build.lock
/docroot
/dpc-sdp
.env.local
docker-compose.override.yml
screenshots
composer.dev.json
composer.build.json
composer.build.lock
vendor
123 changes: 0 additions & 123 deletions .lagoon.elasticsearch.yml

This file was deleted.

8 changes: 0 additions & 8 deletions Dockerfile.elasticsearch

This file was deleted.

8 changes: 0 additions & 8 deletions Dockerfile.elasticsearch.ci

This file was deleted.

Loading

0 comments on commit 16c6620

Please sign in to comment.