summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleonklingele <5585491+leonklingele@users.noreply.github.com>2019-08-04 16:10:32 +0200
committerOmar Roth <omarroth@protonmail.com>2019-08-04 09:10:32 -0500
commit824150f89b8d9fccf88fa393f155bb10dcdae543 (patch)
tree8ca75f43c6222ea9bc0df75a7b75aa50dfb62f4c
parentf7dc4cca2cc1b09fdee08f61ec2b53c1d4f7ec4f (diff)
downloadinvidious-824150f89b8d9fccf88fa393f155bb10dcdae543.tar.gz
invidious-824150f89b8d9fccf88fa393f155bb10dcdae543.tar.bz2
invidious-824150f89b8d9fccf88fa393f155bb10dcdae543.zip
Add Travis CI and pin dependencies (#655)
-rw-r--r--.travis.yml17
-rw-r--r--README.md2
-rw-r--r--shard.yml3
3 files changed, 22 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..da787cf1
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,17 @@
+language: crystal
+
+crystal:
+ - latest
+
+dist: bionic
+
+before_install:
+ - shards update
+ - shards install
+
+install:
+ - crystal build --error-on-warnings src/invidious.cr
+
+script:
+ - crystal tool format --check
+ - crystal spec
diff --git a/README.md b/README.md
index 44254c62..be7c5580 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# Invidious
+[![Build Status](https://travis-ci.org/omarroth/invidious.svg?branch=master)](https://travis-ci.org/omarroth/invidious)
+
## Invidious is an alternative front-end to YouTube
- Audio-only mode (and no need to keep window open on mobile)
diff --git a/shard.yml b/shard.yml
index 3e2b3d03..b1b500d8 100644
--- a/shard.yml
+++ b/shard.yml
@@ -11,10 +11,13 @@ targets:
dependencies:
pg:
github: will/crystal-pg
+ version: ~> 0.17.0
sqlite3:
github: crystal-lang/crystal-sqlite3
+ version: ~> 0.12.0
kemal:
github: kemalcr/kemal
+ version: ~> 0.25.2
crystal: 0.29.0