mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
62 lines
1.1 KiB
YAML
62 lines
1.1 KiB
YAML
|
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
|
||
|
|