Add basic CI
RENAME
packages/harden/.circleci/config.yml
.circleci/config.yml
@@ -2,71 +2,41 @@ version: 2.0
references:
- node11: &node11image
+ node13: &node13image
docker:
- - image: circleci/node:11
+ - image: circleci/node:13
- node10: &node10image
+ node13browser: &node13browsersimage
docker:
- - image: circleci/node:10
-
- node9: &node9image
- docker:
- - image: circleci/node:9
-
- node8: &node8image
- docker:
- - image: circleci/node:8
-
- node7: &node7image
- docker:
- - image: circleci/node:7
-
- node11browser: &node11browsersimage
- docker:
- - image: circleci/node:11-browsers
-
- node10browser: &node10browsersimage
- docker:
- - image: circleci/node:10-browsers
-
- node9browser: &node9browsersimage
- docker:
- - image: circleci/node:9-browsers
-
- node8browser: &node8browsersimage
- docker:
- - image: circleci/node:8-browsers
-
- node7browser: &node7browsersimage
- docker:
- - image: circleci/node:7-browsers
+ - image: circleci/node:13-browsers
install_npm_default: &install_npm
run:
name: Update npm
command: 'sudo npm install -g npm@latest'
+
restore_cache_default: &restore_cache # special step to restore the dependency cache
restore_cache:
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
key: dependency-cache-{{ checksum "package.json" }}
+
install_npm_packages_default: &install_npm_packages
run:
name: Install npm packages
command: npm install
+
save_cache_default: &save_cache # special step to save the dependency cache
save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
-
jobs:
# Lint and Test
- lint_and_test_node_11: &lint_and_test
- <<: *node11image
+ lint_and_test_node_13: &lint_and_test
+ <<: *node13image
steps:
- checkout
- *install_npm
@@ -75,31 +45,15 @@ jobs:
- *save_cache
- run: &lint
name: Lint
- command: npm run lint-check
+ command: yarn lint
- run: &test
name: Test
- command: npm test
-
- lint_and_test_node_10:
- <<: *lint_and_test
- <<: *node10image
-
- lint_and_test_node_9:
- <<: *lint_and_test
- <<: *node9image
-
- lint_and_test_node_8:
- <<: *lint_and_test
- <<: *node8image
-
- lint_and_test_node_7:
- <<: *lint_and_test
- <<: *node7image
+ command: yarn test
# Pre-Release Test Integration
- pre_release_test_integration_node_11: &pre_release_test_integration
- <<: *node11browsersimage
+ pre_release_test_integration_node_13: &pre_release_test_integration
+ <<: *node13browsersimage
steps:
- checkout
- *install_npm
@@ -115,26 +69,10 @@ jobs:
cd integration-test
npm run test:pre-release
- pre_release_test_integration_node_10:
- <<: *pre_release_test_integration
- <<: *node10browsersimage
-
- pre_release_test_integration_node_9:
- <<: *pre_release_test_integration
- <<: *node9browsersimage
-
- pre_release_test_integration_node_8:
- <<: *pre_release_test_integration
- <<: *node8browsersimage
-
- pre_release_test_integration_node_7:
- <<: *pre_release_test_integration
- <<: *node7browsersimage
-
# Post-Release Test Integration
- post_release_test_integration_node_11: &post_release_test_integration
- <<: *node11browsersimage
+ post_release_test_integration_node_13: &post_release_test_integration
+ <<: *node13browsersimage
steps:
- checkout
- *install_npm
@@ -150,23 +88,7 @@ jobs:
cd integration-test
npm run test:post-release
- post_release_test_integration_node_10:
- <<: *post_release_test_integration
- <<: *node10browsersimage
-
- post_release_test_integration_node_9:
- <<: *post_release_test_integration
- <<: *node9browsersimage
-
- post_release_test_integration_node_8:
- <<: *post_release_test_integration
- <<: *node8browsersimage
-
- post_release_test_integration_node_7:
- <<: *post_release_test_integration
- <<: *node7browsersimage
-
- npm_audit_node_11: &npm_audit
+ npm_audit_node_13: &npm_audit
docker:
- image: circleci/golang:1.12.0-node
steps:
@@ -185,15 +107,12 @@ jobs:
name: Submit PR if npm audit fix makes changes
command: ./scripts/npm-audit-fix.sh
-
workflows:
version: 2
test_all:
jobs:
- - lint_and_test_node_11
- - lint_and_test_node_10
- - pre_release_test_integration_node_11
- - pre_release_test_integration_node_10
+ - lint_and_test_node_13
+ # - pre_release_test_integration_node_13
nightly:
triggers:
- schedule:
@@ -203,6 +122,5 @@ workflows:
only:
- master
jobs:
- - npm_audit_node_11
- - post_release_test_integration_node_11
- - post_release_test_integration_node_10
+ # - npm_audit_node_13
+ # - post_release_test_integration_node_13

DELETE
packages/ses-integration-test/scripts/build-post-release-test.sh
-npm run-script build
-cd integration-test
-npm install $( npm pack .. )
-npm run create-test-file-no-lib-cjs
-npm run create-test-file-browserified-tape

DELETE
packages/ses-integration-test/scripts/build-pre-release-test.sh
-npm run-script build
-cd integration-test
-npm install $( npm pack .. )
-npm run create-test-file-no-lib-cjs
-npm run create-test-file-esm
-npm run create-test-file-cjs
-npm run create-test-file-browserified-tape
-npm run build:webpack
-npm run build:browserify
-npm run build:rollup
-npm run build:parcel

DELETE
packages/ses/.circleci/config.yml
-version: 2.0
-
-references:
-
- node11: &node11image
- docker:
- - image: circleci/node:11
-
- node10: &node10image
- docker:
- - image: circleci/node:10
-
- node9: &node9image
- docker:
- - image: circleci/node:9
-
- node8: &node8image
- docker:
- - image: circleci/node:8
-
- node7: &node7image
- docker:
- - image: circleci/node:7
-
- node11browser: &node11browsersimage
- docker:
- - image: circleci/node:11-browsers
-
- node10browser: &node10browsersimage
- docker:
- - image: circleci/node:10-browsers
-
- node9browser: &node9browsersimage
- docker:
- - image: circleci/node:9-browsers
-
- node8browser: &node8browsersimage
- docker:
- - image: circleci/node:8-browsers
-
- node7browser: &node7browsersimage
- docker:
- - image: circleci/node:7-browsers
-
- install_npm_default: &install_npm
- run:
- name: Update npm
- command: 'sudo npm install -g npm@latest'
- restore_cache_default: &restore_cache # special step to restore the dependency cache
- restore_cache:
- # Read about caching dependencies: https://circleci.com/docs/2.0/caching/
- key: dependency-cache-{{ checksum "package.json" }}
- install_npm_packages_default: &install_npm_packages
- run:
- name: Install npm packages
- command: npm install
- save_cache_default: &save_cache # special step to save the dependency cache
- save_cache:
- key: dependency-cache-{{ checksum "package.json" }}
- paths:
- - ./node_modules
- update_realm_submodule_default: &update_realm_submodule
- run:
- name: Git Submodule Update
- command: git submodule update --init --recursive
-
-
-jobs:
-
- # Lint and Test
-
- lint_and_test_node_11: &lint_and_test
- <<: *node11image
- steps:
- - checkout
- - *update_realm_submodule
- - *install_npm
- - *restore_cache
- - *install_npm_packages
- - *save_cache
- - run: &lint
- name: Lint
- command: npm run lint-check
- - run: &test
- name: Test
- command: npm test
-
- lint_and_test_node_10:
- <<: *lint_and_test
- <<: *node10image
-
- lint_and_test_node_9:
- <<: *lint_and_test
- <<: *node9image
-
- lint_and_test_node_8:
- <<: *lint_and_test
- <<: *node8image
-
- lint_and_test_node_7:
- <<: *lint_and_test
- <<: *node7image
-
- # Pre-Release Test Integration
-
- pre_release_test_integration_node_11: &pre_release_test_integration
- <<: *node11browsersimage
- steps:
- - checkout
- - *update_realm_submodule
- - *install_npm
- - *restore_cache
- - *install_npm_packages
- - *save_cache
- - run:
- name: Build browser tests and bundle
- command: ./integration-test/scripts/build-pre-release-test.sh
- - run:
- name: Test bundles
- command: |
- cd integration-test
- npm run test:pre-release
-
- pre_release_test_integration_node_10:
- <<: *pre_release_test_integration
- <<: *node10browsersimage
-
- pre_release_test_integration_node_9:
- <<: *pre_release_test_integration
- <<: *node9browsersimage
-
- pre_release_test_integration_node_8:
- <<: *pre_release_test_integration
- <<: *node8browsersimage
-
- pre_release_test_integration_node_7:
- <<: *pre_release_test_integration
- <<: *node7browsersimage
-
- # Post-Release Test Integration
-
- post_release_test_integration_node_11: &post_release_test_integration
- <<: *node11browsersimage
- steps:
- - checkout
- - *update_realm_submodule
- - *install_npm
- - *restore_cache
- - *install_npm_packages
- - *save_cache
- - run:
- name: Build browser tests
- command: ./integration-test/scripts/build-post-release-test.sh
- - run:
- name: Test unpkg
- command: |
- cd integration-test
- npm run test:post-release
-
- post_release_test_integration_node_10:
- <<: *post_release_test_integration
- <<: *node10browsersimage
-
- post_release_test_integration_node_9:
- <<: *post_release_test_integration
- <<: *node9browsersimage
-
- post_release_test_integration_node_8:
- <<: *post_release_test_integration
- <<: *node8browsersimage
-
- post_release_test_integration_node_7:
- <<: *post_release_test_integration
- <<: *node7browsersimage
-
- npm_audit_node_11: &npm_audit
- docker:
- - image: circleci/golang:1.12.0-node
- steps:
- - checkout
- - run:
- name: Update npm
- command: 'sudo npm install -g npm@latest'
- - run:
- name: install hub
- command: |
- set -xe
- go get -u -d github.com/github/hub
- cd /go/src/github.com/github/hub
- go install github.com/github/hub
- - run:
- name: Submit PR if npm audit fix makes changes
- command: ./scripts/npm-audit-fix.sh
-
-
-workflows:
- version: 2
- test_all:
- jobs:
- - lint_and_test_node_11
- - lint_and_test_node_10
- - pre_release_test_integration_node_11
- - pre_release_test_integration_node_10
- nightly:
- triggers:
- - schedule:
- cron: "0 0 * * *"
- filters:
- branches:
- only:
- - master
- jobs:
- - npm_audit_node_11
- # Only do the post-release tests for the release tags.
- - post_release_test_integration_node_11:
- filters:
- tags:
- only: /^v.*/
- branches:
- ignore: /.*/
- - post_release_test_integration_node_10:
- filters:
- tags:
- only: /^v.*/
- branches:
- ignore: /.*/

RENAME
packages/harden-integration-test/scripts/build-post-release-test.sh
scripts/build-post-release-test.sh
RENAME
packages/harden-integration-test/scripts/build-pre-release-test.sh
scripts/build-pre-release-test.sh
RENAME
packages/transform-module/scripts/npm-audit-fix.sh
scripts/npm-audit-fix.sh
RENAME
packages/transform-module/scripts/setup-agoric-bot.md
scripts/setup-agoric-bot.md
Add basic CI