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

v2.3.12 (#2) #3

Merged
merged 1 commit into from
Apr 25, 2019
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
660 changes: 452 additions & 208 deletions .circleci/config.yml

Large diffs are not rendered by default.

346 changes: 339 additions & 7 deletions .circleci/configTemplate.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,339 @@
{
"version": 2,
"jobs": {
"test-node10-0": {
"test-node10-unit": {
"working_directory": "~/core",
"docker": [
{
"image": "circleci/node:10-browsers"
}
],
"steps": [
"checkout",
{
"run": {
"name": "Apt update",
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
}
},
{
"run": {
"name": "Install xsel",
"command": "sudo apt-get install -q xsel"
}
},
{
"run": {
"name": "Generate cache key",
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
}
},
{
"restore_cache": {
"key": "core-node10-{{ checksum \"checksum.txt\" }}-unit"
}
},
{
"run": {
"name": "Install and build packages",
"command": "yarn setup"
}
},
{
"save_cache": {
"key": "core-node10-{{ checksum \"checksum.txt\" }}-unit",
"paths": []
}
},
{
"run": {
"name": "Create .core/database directory",
"command": "mkdir -p $HOME/.core/database"
}
},
{
"run": {
"name": "Unit tests",
"command": "cd ~/core && yarn test:unit:coverage --coverageDirectory .coverage/unit/ --maxWorkers=2"
}
},
{
"run": {
"name": "Last 1000 lines of test output",
"when": "on_fail",
"command": "tail -n 1000 test_output.txt"
}
},
{
"run": {
"name": "Lint",
"command": "yarn lint"
}
},
{
"run": {
"name": "Codecov",
"command": "./node_modules/.bin/codecov"
}
}
]
},
"test-node11-unit": {
"working_directory": "~/core",
"docker": [
{
"image": "circleci/node:11-browsers"
}
],
"steps": [
"checkout",
{
"run": {
"name": "Apt update",
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
}
},
{
"run": {
"name": "Install xsel",
"command": "sudo apt-get install -q xsel"
}
},
{
"run": {
"name": "Generate cache key",
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
}
},
{
"restore_cache": {
"key": "core-node11-{{ checksum \"checksum.txt\" }}-unit"
}
},
{
"run": {
"name": "Install and build packages",
"command": "yarn setup"
}
},
{
"save_cache": {
"key": "core-node11-{{ checksum \"checksum.txt\" }}-unit",
"paths": []
}
},
{
"run": {
"name": "Create .core/database directory",
"command": "mkdir -p $HOME/.core/database"
}
},
{
"run": {
"name": "Unit tests",
"command": "cd ~/core && yarn test:unit:coverage --coverageDirectory .coverage/unit/ --maxWorkers=2"
}
},
{
"run": {
"name": "Last 1000 lines of test output",
"when": "on_fail",
"command": "tail -n 1000 test_output.txt"
}
},
{
"run": {
"name": "Lint",
"command": "yarn lint"
}
},
{
"run": {
"name": "Codecov",
"command": "./node_modules/.bin/codecov"
}
}
]
},
"test-node10-functional": {
"working_directory": "~/core",
"environment": {
"CORE_DB_DATABASE": "core_unitnet",
"CORE_DB_USERNAME": "core"
},
"docker": [
{
"image": "circleci/node:10-browsers"
},
{
"image": "postgres:alpine",
"environment": {
"POSTGRES_PASSWORD": "password",
"POSTGRES_DB": "core_unitnet",
"POSTGRES_USER": "core"
}
}
],
"steps": [
"checkout",
{
"run": {
"name": "Apt update",
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
}
},
{
"run": {
"name": "Install xsel & postgresql-client",
"command": "sudo apt-get install -q xsel postgresql-client"
}
},
{
"run": {
"name": "Generate cache key",
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
}
},
{
"restore_cache": {
"key": "core-node10-{{ checksum \"checksum.txt\" }}-functional"
}
},
{
"run": {
"name": "Install and build packages",
"command": "yarn setup"
}
},
{
"save_cache": {
"key": "core-node10-{{ checksum \"checksum.txt\" }}-functional",
"paths": []
}
},
{
"run": {
"name": "Create .core/database directory",
"command": "mkdir -p $HOME/.core/database"
}
},
{
"run": {
"name": "Functional tests",
"command": "cd ~/core && yarn test:functional:coverage --coverageDirectory .coverage/functional/"
}
},
{
"run": {
"name": "Last 1000 lines of test output",
"when": "on_fail",
"command": "tail -n 1000 test_output.txt"
}
},
{
"run": {
"name": "Lint",
"command": "yarn lint"
}
},
{
"run": {
"name": "Codecov",
"command": "./node_modules/.bin/codecov"
}
}
]
},
"test-node11-functional": {
"working_directory": "~/core",
"environment": {
"CORE_DB_DATABASE": "core_unitnet",
"CORE_DB_USERNAME": "core"
},
"docker": [
{
"image": "circleci/node:11-browsers"
},
{
"image": "postgres:alpine",
"environment": {
"POSTGRES_PASSWORD": "password",
"POSTGRES_DB": "core_unitnet",
"POSTGRES_USER": "core"
}
}
],
"steps": [
"checkout",
{
"run": {
"name": "Apt update",
"command": "sudo sh -c 'echo \"deb http://ftp.debian.org/debian stable main contrib non-free\" >> /etc/apt/sources.list' && sudo apt-get update"
}
},
{
"run": {
"name": "Install xsel & postgresql-client",
"command": "sudo apt-get install -q xsel postgresql-client"
}
},
{
"run": {
"name": "Generate cache key",
"command": "find ./packages/ -name package.json -print0 | sort -z | xargs -r0 echo ./package.json | xargs md5sum | md5sum - > checksum.txt"
}
},
{
"restore_cache": {
"key": "core-node11-{{ checksum \"checksum.txt\" }}-functional"
}
},
{
"run": {
"name": "Install and build packages",
"command": "yarn setup"
}
},
{
"save_cache": {
"key": "core-node11-{{ checksum \"checksum.txt\" }}-functional",
"paths": []
}
},
{
"run": {
"name": "Create .core/database directory",
"command": "mkdir -p $HOME/.core/database"
}
},
{
"run": {
"name": "Functional tests",
"command": "cd ~/core && yarn test:functional:coverage --coverageDirectory .coverage/functional/"
}
},
{
"run": {
"name": "Last 1000 lines of test output",
"when": "on_fail",
"command": "tail -n 1000 test_output.txt"
}
},
{
"run": {
"name": "Lint",
"command": "yarn lint"
}
},
{
"run": {
"name": "Codecov",
"command": "./node_modules/.bin/codecov"
}
}
]
},
"test-node10-integration-0": {
"working_directory": "~/core",
"environment": {
"CORE_DB_DATABASE": "core_unitnet",
Expand Down Expand Up @@ -65,8 +397,8 @@
},
{
"run": {
"name": "Test",
"command": ""
"name": "Unit tests",
"command": "cd ~/core && yarn test:unit:coverage --coverageDirectory .coverage/unit/ --maxWorkers=2"
}
},
{
Expand All @@ -90,7 +422,7 @@
}
]
},
"test-node11-0": {
"test-node11-integration-0": {
"working_directory": "~/core",
"environment": {
"CORE_DB_DATABASE": "core_unitnet",
Expand Down Expand Up @@ -154,8 +486,8 @@
},
{
"run": {
"name": "Test",
"command": ""
"name": "Unit tests",
"command": "cd ~/core && yarn test:unit:coverage --coverageDirectory .coverage/unit/ --maxWorkers=2"
}
},
{
Expand Down Expand Up @@ -183,7 +515,7 @@
"workflows": {
"version": 2,
"build_and_test": {
"jobs": []
"jobs": ["test-node10-integration-0", "test-node11-integration-0"]
}
}
}
Loading