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

ci: remove codecov #1786

Merged
merged 5 commits into from
Apr 18, 2021
Merged
Show file tree
Hide file tree
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
234 changes: 166 additions & 68 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,39 @@ defaults: &defaults
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
LC_TYPE: en_US.UTF-8
NODE_OPTIONS: --max_old_space_size=4096
NODE_OPTIONS: --max_old_space_size=4096 --unhandled-rejections=strict

version: 2.1
orbs:
win: circleci/windows@2.4.0
executorType: docker
jobs:
acceptance-test:
<<: *defaults
docker:
- image: "node:<<parameters.node-version>>"
environment:
<<: *env
RUN_ACCEPTANCE_TESTS: true
parameters:
node-version:
type: "string"
steps:
- checkout
- restore_cache: &yarn_restore_cache
keys:
- v4-yarn-{{ checksum ".circleci/config.yml" }}-{{ checksum "yarn.lock" }}
- v4-yarn-{{ checksum ".circleci/config.yml" }}
- v4-yarn
- run:
name: Installing dependencies
command: yarn --frozen-lockfile
- run:
name: heroku whoami
command: ./bin/run whoami
- run:
name: Smoke tests CLI
command: ./scripts/run-acceptance
windows-test:
executor:
name: win/default
Expand Down Expand Up @@ -141,15 +167,9 @@ jobs:
- run:
name: Installing dependencies
command: yarn --frozen-lockfile
- run:
name: heroku whoami
command: ./bin/run whoami
- run:
name: Running all tests
command: yarn test
- run:
name: Uploading code coverage to codecov
command: ./node_modules/.bin/lerna exec "curl -s https://codecov.io/bash | bash"
node10-test:
<<: *test
docker:
Expand All @@ -160,6 +180,53 @@ jobs:
docker:
- image: node:14
resource_class: xlarge
pack-windows:
<<: *defaults
steps:
- checkout
- restore_cache: *yarn_restore_cache
- run: |
mkdir -p /build
cp yarn.lock packages/cli
cd packages/cli
yarn --frozen-lockfile
- run:
name: Building Windows binaries
command: ./scripts/pack/win
- persist_to_workspace:
root: /cli/packages/cli
paths:
- dist
pack-tarballs:
<<: *defaults
steps:
- checkout
- restore_cache: *yarn_restore_cache
- run: |
mkdir -p /build
cp yarn.lock packages/cli
cd packages/cli
yarn --frozen-lockfile
- run:
name: Building Tarballs
command: ./scripts/pack/tarballs
- persist_to_workspace:
root: /cli/packages/cli
paths:
- dist
store-artifacts:
<<: *defaults
steps:
- attach_workspace:
at: /build
- checkout
- restore_cache: *yarn_restore_cache
- run:
name: "Create SHA256 artifacts"
command: ./scripts/hash-artifacts
- store_artifacts:
path: /build/dist
destination: /
release_tarballs:
<<: *defaults
steps:
Expand Down Expand Up @@ -214,15 +281,14 @@ jobs:
<<: *defaults
steps:
- attach_workspace:
at: /persisted
at: /build
- add_ssh_keys
- checkout
- run: |
cp yarn.lock packages/cli
cd packages/cli
yarn --frozen-lockfile
cp -r /persisted/dist /cli/packages/cli
cp -r /persisted/tmp /cli/packages/cli
cp -r /build/dist /cli/packages/cli
./scripts/release/homebrew.js
invalidate_cdn_cache:
<<: *defaults
Expand Down Expand Up @@ -280,71 +346,103 @@ workflows:
- node14-test: *windows_test
- node12-test: *windows_test
- node10-test: *windows_test
heroku_cli_release:
jobs:
- node14-test: &node14_test
filters:
branches:
only:
- master
tags: &version_tags
only: /^v.*/
- node12-test: *node14_test
- node10-test: *node14_test
- windows-test: *node14_test
- release_tarballs: &release_tarballs
requires:
- acceptance-test:
context:
- heroku-cli-acceptance-tests
matrix:
parameters:
node-version:
- "10"
- "12"
- "14"
- pack-windows:
requires: &pack-requires
- node14-test
- node12-test
- node10-test
- windows-test
filters: &master_dev_and_version_tags
tags:
<<: *version_tags
branches:
only:
- master
- dev
- release_deb: *release_tarballs
- release_win: *release_tarballs
- release_homebrew:
- acceptance-test
- pack-tarballs:
requires: *pack-requires
- store-artifacts:
requires:
- release_tarballs
filters: &only_version_tags
branches:
ignore: /.*/
tags:
<<: *version_tags
# - trigger_macos: &trigger_macos
- pack-windows
- pack-tarballs
# heroku_cli_release:
# jobs:
# - node14-test: &node14_test
# filters:
# branches:
# only:
# - master
# tags: &version_tags
# only: /^v.*/
# - node12-test: *node14_test
# - node10-test: *node14_test
# - windows-test: *node14_test
# - acceptance-test:
# context:
# - heroku-cli-acceptance-tests
# matrix:
# parameters:
# node-version:
# - "10"
# - "12"
# - "14"
# - release_tarballs: &release_tarballs
# requires:
# - node12-test
# - node10-test
# - windows-test
# - acceptance-test
# filters: &master_dev_and_version_tags
# tags:
# <<: *version_tags
# branches:
# only:
# - master
# - dev
# - release_deb: *release_tarballs
# - release_win: *release_tarballs
# - release_homebrew:
# requires:
# - release_tarballs
# filters: &only_version_tags
# branches:
# ignore: /.*/
# tags:
# <<: *version_tags
# # - trigger_macos: &trigger_macos
# # requires:
# # - node12-test
# # - node10-test
# # - windows-test
# # filters:
# # <<: *only_version_tags
# # - release_snap:
# # requires:
# # - node12-test
# # - node10-test
# # - windows-test
# # filters:
# # <<: *only_version_tags
# - invalidate_cdn_cache:
# requires:
# - install_scripts
# filters:
# <<: *master_dev_and_version_tags
# - install_scripts: &install_scripts
# requires:
# - release_tarballs
# - release_deb
# - release_win
# filters:
# <<: *master_dev_and_version_tags
# - change_management: &change_management
# requires:
# - release_tarballs
# - release_deb
# - release_win
# filters:
# <<: *only_version_tags
# - release_snap:
# requires:
# - node12-test
# - node10-test
# - windows-test
# filters:
# <<: *only_version_tags
- invalidate_cdn_cache:
requires:
- install_scripts
filters:
<<: *master_dev_and_version_tags
- install_scripts: &install_scripts
requires:
- release_tarballs
- release_deb
- release_win
filters:
<<: *master_dev_and_version_tags
- change_management: &change_management
requires:
- release_tarballs
- release_deb
- release_win
filters:
<<: *only_version_tags
- dev_center_docs: *change_management
# - dev_center_docs: *change_management
1 change: 0 additions & 1 deletion packages/addons-v5/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# heroku-cli-addons [![Circle CI](https://circleci.com/gh/heroku/heroku-cli-addons.svg?style=svg)](https://circleci.com/gh/heroku/heroku-cli-addons)

[![Code Climate](https://codeclimate.com/github/heroku/heroku-cli-addons/badges/gpa.svg)](https://codeclimate.com/github/heroku/heroku-cli-addons)
[![codecov](https://codecov.io/gh/heroku/heroku-cli-addons/branch/master/graph/badge.svg)](https://codecov.io/gh/heroku/heroku-cli-addons)
[![npm version](https://badge.fury.io/js/heroku-cli-addons.svg)](https://badge.fury.io/js/heroku-cli-addons)
[![License](https://img.shields.io/github/license/heroku/heroku-cli-addons.svg)](https://github.com/heroku/heroku-cli-addons/blob/master/LICENSE)

Expand Down
13 changes: 0 additions & 13 deletions packages/addons-v5/circle.yml

This file was deleted.

59 changes: 0 additions & 59 deletions packages/apps-v5/.circleci/config.yml

This file was deleted.

1 change: 0 additions & 1 deletion packages/apps-v5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ heroku-apps [![Circle CI](https://circleci.com/gh/heroku/heroku-apps.svg?style=s
===========

[![Code Climate](https://codeclimate.com/github/heroku/heroku-apps/badges/gpa.svg)](https://codeclimate.com/github/heroku/heroku-apps)
[![codecov](https://codecov.io/gh/heroku/heroku-apps/branch/master/graph/badge.svg)](https://codecov.io/gh/heroku/heroku-apps)
[![npm version](https://badge.fury.io/js/heroku-apps.svg)](https://badge.fury.io/js/heroku-apps)
[![License](https://img.shields.io/github/license/heroku/heroku-apps.svg)](https://github.com/heroku/heroku-apps/blob/master/LICENSE)
[![Greenkeeper badge](https://badges.greenkeeper.io/heroku/heroku-apps.svg)](https://greenkeeper.io/)
Expand Down
13 changes: 0 additions & 13 deletions packages/apps-v5/appveyor.yml

This file was deleted.

Loading