mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
CI: Add CircleCI using manastech/crystal@1.0 (#59)
This commit is contained in:
parent
8586182fd8
commit
d440f55b2f
1 changed files with 61 additions and 0 deletions
61
.circleci/config.yml
Normal file
61
.circleci/config.yml
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
version: 2.1
|
||||||
|
|
||||||
|
orbs:
|
||||||
|
crystal: manastech/crystal@1.0
|
||||||
|
|
||||||
|
commands:
|
||||||
|
install-sqlite:
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Install `sqlite`
|
||||||
|
command: apt-get update && apt-get install -y libsqlite3-dev
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
parameters:
|
||||||
|
executor:
|
||||||
|
type: executor
|
||||||
|
default: crystal/default
|
||||||
|
executor: << parameters.executor >>
|
||||||
|
steps:
|
||||||
|
- install-sqlite
|
||||||
|
- crystal/version
|
||||||
|
- checkout
|
||||||
|
- crystal/with-shards-cache:
|
||||||
|
steps:
|
||||||
|
- crystal/shards-install
|
||||||
|
- crystal/spec
|
||||||
|
- crystal/format-check
|
||||||
|
|
||||||
|
executors:
|
||||||
|
nightly:
|
||||||
|
docker:
|
||||||
|
- image: 'crystallang/crystal:nightly'
|
||||||
|
environment:
|
||||||
|
SHARDS_OPTS: --ignore-crystal-version
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
build:
|
||||||
|
jobs:
|
||||||
|
- test
|
||||||
|
- test:
|
||||||
|
name: test-on-nightly
|
||||||
|
executor:
|
||||||
|
name: nightly
|
||||||
|
|
||||||
|
nightly:
|
||||||
|
triggers:
|
||||||
|
- schedule:
|
||||||
|
cron: "0 3 * * *"
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
- test:
|
||||||
|
name: test-on-nightly
|
||||||
|
executor:
|
||||||
|
name: nightly
|
||||||
|
|
Loading…
Reference in a new issue