Skip to content

Commit

Permalink
chore(ci): remove the postgres setup from unit test jobs (#2345)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian authored Mar 30, 2019
1 parent 677be71 commit a2cec00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 48 deletions.
24 changes: 4 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,8 @@ version: 2
jobs:
test-node10-unit:
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:
Expand All @@ -20,8 +12,8 @@ jobs:
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
name: Install xsel
command: sudo apt-get install -q xsel
- run:
name: Generate cache key
command: >-
Expand Down Expand Up @@ -88,16 +80,8 @@ jobs:
command: ./node_modules/.bin/codecov
test-node11-unit:
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:
Expand All @@ -106,8 +90,8 @@ jobs:
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
name: Install xsel
command: sudo apt-get install -q xsel
- run:
name: Generate cache key
command: >-
Expand Down
32 changes: 4 additions & 28 deletions .circleci/configTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,9 @@
"jobs": {
"test-node10-unit": {
"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": [
Expand All @@ -30,8 +18,8 @@
},
{
"run": {
"name": "Install xsel & postgresql-client",
"command": "sudo apt-get install -q xsel postgresql-client"
"name": "Install xsel",
"command": "sudo apt-get install -q xsel"
}
},
{
Expand Down Expand Up @@ -92,21 +80,9 @@
},
"test-node11-unit": {
"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": [
Expand All @@ -119,8 +95,8 @@
},
{
"run": {
"name": "Install xsel & postgresql-client",
"command": "sudo apt-get install -q xsel postgresql-client"
"name": "Install xsel",
"command": "sudo apt-get install -q xsel"
}
},
{
Expand Down

0 comments on commit a2cec00

Please sign in to comment.