-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from systemseed/falcon-frontend
Reorganise systemseed/falcon into a monorepo with backend and frontend packages
- Loading branch information
Showing
575 changed files
with
17,622 additions
and
964 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,103 @@ | ||
version: 2 | ||
version: 2.1 | ||
|
||
jobs: | ||
build_and_test: | ||
|
||
machine: | ||
enabled: true | ||
image: circleci/classic:201808-01 | ||
image: circleci/classic:latest | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Pull Docker images | ||
command: make pull | ||
|
||
- run: | ||
name: Fix CircleCI files permissons | ||
command: | | ||
sudo chown ubuntu:ubuntu -R * | ||
sudo chown ubuntu:ubuntu -R .[!.]* | ||
- run: | ||
name: Pull Docker images | ||
command: make pull | ||
name: Install Javascript dependencies | ||
command: make yarn | ||
|
||
- run: | ||
name: Check PHP & Javascript code for compliance with Drupal Coding Standards. | ||
name: Check PHP & Javascript code for compliance with Coding Standards. | ||
command: make code:check | ||
when: always | ||
|
||
- run: | ||
name: Make local environment | ||
name: Install Falcon on local development environment | ||
command: make install | ||
no_output_timeout: 20m | ||
|
||
- run: | ||
name: Add Falcon domain host into /etc/hosts | ||
command: echo 127.0.0.1 falcon.docker.localhost | sudo tee -a /etc/hosts | ||
command: echo 127.0.0.1 falcon.docker.localhost app.docker.localhost | sudo tee -a /etc/hosts | ||
|
||
- run: | ||
name: Prepare tests | ||
name: Install test dependencies | ||
command: make tests:prepare | ||
|
||
- run: | ||
name: Run basic group tests | ||
command: make tests:run -- -g basic | ||
name: Run codeception basic group tests | ||
command: make tests:codeception -- -g basic | ||
|
||
- run: | ||
name: Install additional modules | ||
command: make drush en \$\(ADDITIONAL_MODULES\) | ||
|
||
- run: | ||
name: Run basic and additional groups tests | ||
command: make tests:run -- -g basic -g additional | ||
name: Run codeception basic and additional groups tests | ||
command: make tests:codeception -- -g basic -g additional | ||
|
||
- run: | ||
name: Run TestCafe tests | ||
command: make tests:testcafe | ||
|
||
# Run demo content tests need after end of Acceptance tests, | ||
# because demo-content will be deleted. | ||
- run: | ||
name: Run tests for demo content | ||
command: make tests:run -- -g demo-content | ||
name: Run codeception tests for demo content | ||
command: make tests:codeception -- -g demo-content | ||
|
||
- store_artifacts: | ||
path: tests/_output | ||
path: tests/_output/ | ||
|
||
- store_test_results: | ||
path: tests/end-to-end/results | ||
|
||
split_and_push: | ||
docker: | ||
- image: buildpack-deps:trusty | ||
steps: | ||
- add_ssh_keys | ||
- checkout | ||
- run: | ||
name: Split monorepo into child repositories for releasing. | ||
command: .circleci/split/split.sh | ||
|
||
workflows: | ||
version: 2 | ||
|
||
build_and_test: | ||
jobs: | ||
- build_and_test | ||
- build_and_test: | ||
filters: | ||
branches: | ||
ignore: | ||
- master | ||
|
||
release: | ||
jobs: | ||
- build_and_test: | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
|
||
- split_and_push: | ||
requires: | ||
- build_and_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
# Inspired by Laravel monorepo setup. See: | ||
# - https://github.com/laravel/framework | ||
# - https://github.com/splitsh/lite | ||
|
||
set -e | ||
set -x | ||
|
||
function split() | ||
{ | ||
SHA1=`.circleci/split/splitsh-lite --prefix=$1` | ||
git push $2 "$SHA1:master" -f | ||
} | ||
|
||
function remote() | ||
{ | ||
git remote add $1 $2 || true | ||
} | ||
|
||
git pull origin master | ||
|
||
remote falcon git@github.com:systemseed/falcon-backend.git | ||
remote falconjs git@github.com:systemseed/falcon.js.git | ||
|
||
split 'falcon' falcon | ||
split 'falconjs/packages/falcon' falconjs |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.