-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update build & README to latest Crystal release
- Loading branch information
Showing
3 changed files
with
10 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
dist: xenial | ||
language: generic | ||
sudo: required | ||
language: crystal | ||
services: | ||
- docker | ||
- postgresql | ||
env: | ||
- POSTGRESQL_URL=postgres://postgres@localhost:5432/test | ||
before_install: | ||
- docker pull crystallang/crystal:nightly | ||
before_script: | ||
- psql -c 'create database test;' -U postgres | ||
- psql $POSTGRESQL_URL < db_spec/pg/migration.sql | ||
script: | ||
- docker run -v ${PWD}:/x -w /x crystallang/crystal:nightly bash -c "/usr/bin/shards install" | ||
- docker run -v ${PWD}:/x -w /x crystallang/crystal:nightly bash -c "/usr/bin/crystal spec" | ||
- docker run -v ${PWD}:/x -w /x --net=host -e POSTGRESQL_URL=$POSTGRESQL_URL crystallang/crystal:nightly bash -c "/usr/bin/crystal spec db_spec/" | ||
- docker run -v ${PWD}:/x -w /x crystallang/crystal:nightly bash -c "/usr/bin/crystal docs" | ||
- crystal spec | ||
- env POSTGRESQL_URL=$POSTGRESQL_URL crystal spec db_spec | ||
- crystal docs | ||
deploy: | ||
provider: pages | ||
skip_cleanup: true | ||
github_token: $GITHUB_TOKEN | ||
on: | ||
branch: master | ||
local_dir: docs | ||
before_script: | ||
- psql -c 'create database test;' -U postgres | ||
- psql $POSTGRESQL_URL < spec/migration.sql | ||
env: | ||
- POSTGRESQL_URL=postgres://postgres@localhost:5432/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters