From 884ae85a5c0da4e60706e33a695b08d4f87d8453 Mon Sep 17 00:00:00 2001 From: Vlad Faust Date: Wed, 7 Nov 2018 16:27:55 +0300 Subject: [PATCH] chore: update build & README to latest Crystal release --- .travis.yml | 24 +++++++++--------------- README.md | 2 -- shard.yml | 2 +- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index f35bc9f..9f49de1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,10 @@ -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 @@ -23,3 +12,8 @@ deploy: 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 diff --git a/README.md b/README.md index f024eff..6c5ae59 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -> ⚠️ Master branch requires Crystal master to compile. See [installation instructions for Crystal](https://crystal-lang.org/docs/installation/from_source_repository.html). - # Atom::Model [![Built with Crystal](https://img.shields.io/badge/built%20with-crystal-000000.svg?style=flat-square)](https://crystal-lang.org/) diff --git a/shard.yml b/shard.yml index a1bd531..bb42568 100644 --- a/shard.yml +++ b/shard.yml @@ -4,7 +4,7 @@ version: 0.5.0 authors: - Vlad Faust -crystal: master +crystal: 0.27.0 dependencies: time_format: