Skip to content

Commit 3baf966

Browse files
committed
Adds build script
1 parent 7f23a56 commit 3baf966

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ package-lock.json
44
.env
55
.nyc_output
66
coverage
7-
.DS_Store
7+
.DS_Store
8+
build

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Build Status](https://travis-ci.org/Raywire/postgres-express-node.svg?branch=develop)](https://travis-ci.org/Raywire/postgres-express-node)
2+
[![Build Status](https://ryanwire.visualstudio.com/postgres-express-node/_apis/build/status/Raywire.postgres-express-node?branchName=develop)](https://ryanwire.visualstudio.com/postgres-express-node/_build/latest?definitionId=2&branchName=develop)
23
[![Coverage Status](https://coveralls.io/repos/github/Raywire/postgres-express-node/badge.svg?branch=develop)](https://coveralls.io/github/Raywire/postgres-express-node?branch=develop)
34
[![Maintainability](https://api.codeclimate.com/v1/badges/af62aca2e06bd8f4da6f/maintainability)](https://codeclimate.com/github/Raywire/postgres-express-node/maintainability)
45
[![Test Coverage](https://api.codeclimate.com/v1/badges/af62aca2e06bd8f4da6f/test_coverage)](https://codeclimate.com/github/Raywire/postgres-express-node/test_coverage)

azure-pipelines.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ trigger:
77
- master
88
- develop
99

10+
variables:
11+
- group: postgres-express-node
12+
1013
pool:
1114
vmImage: 'ubuntu-latest'
1215

@@ -19,3 +22,12 @@ steps:
1922
- script: |
2023
npm install
2124
displayName: 'npm install'
25+
26+
- task: ArchiveFiles@2
27+
displayName: 'Archive files'
28+
inputs:
29+
rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
30+
includeRootFolder: false
31+
32+
- task: PublishBuildArtifacts@1
33+
displayName: 'Publish artifacts: drop'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"start": "node ./bin/www",
88
"start:dev": "nodemon ./bin/www",
9+
"build": "exit 0",
910
"test": "NODE_ENV=test npm run reset:db && NODE_ENV=test nyc mocha --timeout 5000 server/tests/**/*.spec.js",
1011
"migrate": "sequelize db:migrate",
1112
"reset:db": "sequelize db:migrate:undo:all && npm run migrate",

server/config/config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"development": {
33
"use_env_variable": "DATABASE_URL",
4-
"dialect": "postgres"
4+
"dialect": "postgres",
5+
"dialectOptions": {
6+
"ssl": true
7+
}
58
},
69
"test": {
710
"use_env_variable": "DATABASE_URL_TEST",

0 commit comments

Comments
 (0)