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. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk authored Jan 22, 2019
1 parent 53b01a0 commit 05ab49e
Show file tree
Hide file tree
Showing 18 changed files with 85 additions and 605 deletions.
64 changes: 17 additions & 47 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,72 +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
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: 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 @@ -75,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
214 changes: 0 additions & 214 deletions Makefile

This file was deleted.

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@ composer require dpc-sdp/tide_test
# PURPOSE
- test content type
- other test functionality

# Caveats

Tide Test is on the alpha release, use with caution. APIs are likely to change before the stable version, that there will be breaking changes and that we're not supporting it for external production sites at the moment.
Loading

0 comments on commit 05ab49e

Please sign in to comment.