Skip to content

Commit

Permalink
Configure weekly performance.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnapolitan committed Jul 1, 2020
1 parent d9b58bb commit 43dd11d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,38 @@ jobs:
- store_artifacts:
path: /tmp/cni-test

performance_test:
docker:
- image: circleci/golang:1.13-stretch
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
environment:
<<: *env
RUN_CONFORMANCE: "false"
RUN_PERFORMANCE_TESTS: "true"
steps:
- checkout
- setup_remote_docker
- aws-cli/setup:
profile-name: awstester
- restore_cache:
keys:
- dependency-packages-store-{{ checksum "test/integration/go.mod" }}
- dependency-packages-store-
- k8s/install-kubectl:
# requires 1.14.9 for k8s testing, since it uses log api.
kubectl-version: v1.14.9
- run:
name: Run the integration tests
command: ./scripts/run-integration-tests.sh
no_output_timeout: 15m
- save_cache:
key: dependency-packages-store-{{ checksum "test/integration/go.mod" }}
paths:
- /go/pkg
when: always
- store_artifacts:
path: /tmp/cni-test

workflows:
version: 2
check:
Expand Down Expand Up @@ -118,3 +150,15 @@ workflows:
- master
jobs:
- integration_test

# triggers weekly tests on master
nightly-test-run:
triggers:
- schedule:
cron: "0 0 * * 6"
filters:
branches:
only:
- master
jobs:
- performance_test

0 comments on commit 43dd11d

Please sign in to comment.