mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
32 lines
669 B
YAML
32 lines
669 B
YAML
language: go
|
|
dist: xenial
|
|
|
|
go:
|
|
- 1.13
|
|
|
|
env:
|
|
- NODE_VERSION=10.15.0
|
|
|
|
before_install:
|
|
- sudo apt-get update
|
|
- sudo apt-get --yes remove postgresql\*
|
|
- sudo apt-get install -y postgresql-11 postgresql-client-11
|
|
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
|
|
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf
|
|
- sudo service postgresql restart 11
|
|
|
|
before_script:
|
|
- nvm install "$NODE_VERSION"
|
|
- nvm use "$NODE_VERSION"
|
|
- node --version
|
|
- psql -c "CREATE DATABASE dnote_test;" -U postgres
|
|
|
|
install:
|
|
- make install
|
|
|
|
script:
|
|
- make lint
|
|
- make test-cli
|
|
- make test-api
|
|
- make test-web
|
|
- make test-jslib
|