Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add apt-get update to circle ci tasks #3457

Merged
merged 1 commit into from
Feb 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 31 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ jobs:
- persist_to_workspace:
root: .
paths: .

test:
<<: *defaults
steps:
- attach_workspace:
at: ./
- restore_cache:
key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run:
name: Update OS Packages
command: sudo apt-get update
- run:
name: Install Java
command: sudo apt-get install default-jdk
Expand All @@ -47,6 +51,28 @@ jobs:
name: Collect code coverage
command: yarn coverage

mock_e2e_tests:
<<: *defaults
steps:
- attach_workspace:
at: ./
- restore_cache:
key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run:
name: Update OS Packages
command: sudo apt-get update
- run:
name: Install Java
command: sudo apt-get install default-jdk
- run:
name: Run Transformer end-to-end tests with mock server
command: cd packages/amplify-util-mock/ && yarn e2e
no_output_timeout: 90m
environment:
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
- store_test_results:
path: packages/amplify-util-mock/

publish_to_local_registry:
<<: *defaults
steps:
Expand Down Expand Up @@ -79,25 +105,6 @@ jobs:
- store_test_results:
path: packages/graphql-transformers-e2e-tests/

mock_e2e_tests:
<<: *defaults
steps:
- attach_workspace:
at: ./
- restore_cache:
key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run:
name: Install Java
command: sudo apt-get install default-jdk
- run:
name: Run Transformer end-to-end tests with mock server
command: cd packages/amplify-util-mock/ && yarn e2e
no_output_timeout: 90m
environment:
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
- store_test_results:
path: packages/amplify-util-mock/

amplify_e2e_tests:
<<: *defaults
steps:
Expand Down Expand Up @@ -218,6 +225,7 @@ jobs:
path: ../aws-amplify-cypress-api/cypress/videos
- store_artifacts:
path: ../aws-amplify-cypress-api/cypress/screenshots

deploy:
<<: *defaults
steps:
Expand All @@ -240,6 +248,7 @@ jobs:
else
echo "Skipping deploy."
fi

integration_test_js:
working_directory: ~/repo
docker:
Expand Down Expand Up @@ -283,6 +292,7 @@ jobs:
path: /root/screenshots
- store_test_results:
path: packages/amplify-ui-tests/

integration_test_ios:
macos:
xcode: '11.0.0'
Expand Down Expand Up @@ -340,6 +350,7 @@ jobs:
path: ../uitest_logs
- store_test_results:
path: ../uitest_logs

integration_test_android:
docker:
- image: circleci/android:api-27-node
Expand Down Expand Up @@ -454,6 +465,7 @@ jobs:
when: always
- store_artifacts:
path: ../uitest_android_results

workflows:
version: 2
build_test_deploy:
Expand Down