Skip to content

Commit

Permalink
Merge pull request #2446 from ArkEcosystem/develop
Browse files Browse the repository at this point in the history
release: 2.3.0
  • Loading branch information
faustbrian authored Apr 23, 2019
2 parents c104184 + 9f298cd commit 9399a66
Show file tree
Hide file tree
Showing 1,019 changed files with 25,388 additions and 22,992 deletions.
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

0 comments on commit 9399a66

Please sign in to comment.