Created
April 8, 2019 23:15
-
-
Save starkovsky/c0d06483910384fc059763609d7ce84b to your computer and use it in GitHub Desktop.
CircleCI Laravel + Vue
This file contains hidden or 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
| version: 2 | |
| defaults: &defaults | |
| working_directory: ~/project/laravel | |
| docker: | |
| - image: circleci/php:7.3-node-browsers | |
| jobs: | |
| install: | |
| <<: *defaults | |
| steps: | |
| - checkout | |
| - run: sudo composer self-update | |
| - run: composer install | |
| - run: composer run post-root-package-install | |
| - run: composer run post-create-project-cmd | |
| - run: cd resources/frontend/app && npm install | |
| - run: cd resources/frontend/admin && npm install | |
| - persist_to_workspace: | |
| root: ~/project | |
| paths: | |
| - laravel | |
| test-laravel: | |
| <<: *defaults | |
| steps: | |
| - attach_workspace: | |
| at: ~/project | |
| - run: vendor/bin/phpunit | |
| test-vue-app: | |
| <<: *defaults | |
| steps: | |
| - attach_workspace: | |
| at: ~/project | |
| - run: cd resources/frontend/app && npm run test:unit | |
| test-vue-admin: | |
| <<: *defaults | |
| steps: | |
| - attach_workspace: | |
| at: ~/project | |
| - run: cd resources/frontend/admin && npm run test:unit | |
| workflows: | |
| version: 2 | |
| install-and-test: | |
| jobs: | |
| - install | |
| - test-laravel: | |
| requires: | |
| - install | |
| - test-vue-app: | |
| requires: | |
| - install | |
| - test-vue-admin: | |
| requires: | |
| - install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment