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

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-gao committed Jan 28, 2022
1 parent 16fe893 commit 58de5f2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
42 changes: 24 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,15 @@ jobs:
- setup_remote_docker:
docker_layer_caching: true
- run: .circleci/build.sh
- run: .circleci/phpunit_tests.sh
- run: .cicircleci/phpunit_tests.sh
- run:
name: Run on fail status
command: |
.circleci/phpunit_results.sh
when: always
- store_artifacts:
path: /tmp/phpunit
- store_test_results:
path: /tmp/phpunit

phpunit_coverage:
<<: *job-build
steps:
- attach_workspace:
at: /workspace
- checkout
- run: if [ -f "./dev-tools.sh" ] && [ ! "$DEV_TOOLS" ]; then ./dev-tools.sh; fi
- setup_remote_docker:
docker_layer_caching: true
- run: .circleci/build.sh
- run: .circleci/phpunit_coverage.sh
- run:
name: Run on fail status
name: Run on fail coverage
command: |
.circleci/phpunit_results.sh
when: always
Expand All @@ -81,11 +66,32 @@ jobs:
- store_test_results:
path: /tmp/phpunit

# phpunit_coverage:
# <<: *job-build
# steps:
# - attach_workspace:
# at: /workspace
# - checkout
# - run: if [ -f "./dev-tools.sh" ] && [ ! "$DEV_TOOLS" ]; then ./dev-tools.sh; fi
# - setup_remote_docker:
# docker_layer_caching: true
# - run: .circleci/build.sh
# - run: .circleci/phpunit_coverage.sh
# - run:
# name: Run on fail status
# command: |
# .circleci/phpunit_results.sh
# when: always
# - store_artifacts:
# path: /tmp/phpunit
# - store_test_results:
# path: /tmp/phpunit

workflows:
version: 2
main:
jobs:
- build
- build_suggest
- phpunit_tests
- phpunit_coverage
# - phpunit_coverage
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected function setUp() {
public function testGetNodeFrontendUrl($value, $expected) {
$url = Url::fromUri($value);
$url = $this->tideSitePreviewHelper->getNodeFrontendUrl($url);
$this->assertEquals($expected, $url->toString());
$this->assertEquals($expected, $url->toString().'hello');
}

/**
Expand Down

0 comments on commit 58de5f2

Please sign in to comment.