Skip to content

Commit

Permalink
feat: move to annotations
Browse files Browse the repository at this point in the history
BREAKING CHANGE: updated Query semantics.

Closes #67, fixes #62, also closes #45 and closes #64
  • Loading branch information
vladfaust committed Feb 17, 2019
1 parent 77adcfc commit 9427f16
Show file tree
Hide file tree
Showing 137 changed files with 5,052 additions and 3,275 deletions.
41 changes: 32 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,42 @@
language: crystal
services:
- postgresql
script:
- crystal spec
- env POSTGRESQL_URL=$POSTGRESQL_URL crystal spec db_spec
- crystal docs
cache:
directories:
- lib
jobs:
include:
- stage: Install shards
script: shards install
- stage: Run tests
- name: Run Crystal specs
script:
- crystal spec
- name: Run PostgreSQL specs
env:
- POSTGRESQL_URL=postgres://postgres@localhost:5432/test
before_script:
- psql -c 'create database test;' -U postgres
- psql $POSTGRESQL_URL < db_spec/pg/migration.sql
script:
- shards install
- env POSTGRESQL_URL=$POSTGRESQL_URL crystal spec db_spec/pg
- name: Run SQLite3 specs
env: $SQLITE3_URL=sqlite3://./test.sqlite3
before_script:
- sqlite3 ./test.sqlite3 < db_spec/sqlite3/migration.sql
script:
- env SQLITE3_URL=$SQLITE3_URL crystal spec db_spec/sqlite3
- name: Generate docs
script:
- crystal docs
deploy:
provider: pages
skip_cleanup: true
keep_history: true
github_token: $GITHUB_TOKEN
on:
branch: master
local_dir: docs
before_script:
- psql -c 'create database test;' -U postgres
- psql $POSTGRESQL_URL < db_spec/pg/migration.sql
env:
- POSTGRESQL_URL=postgres://postgres@localhost:5432/test
addons:
postgresql: "9.5"
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 Vlad Faust

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit 9427f16

Please sign in to comment.