I get the following error message when trying to build an application in multiple stages:
Installing Crystal
[latest] is an invalid version of Crystal.
View valid versions of Crystal at https://docs.travis-ci.com/user/languages/crystal/
Relevant .travis.yml
file:
dist: bionic
jobs:
include:
- stage: build
language: crystal
crystal:
- latest
before_install:
- shards update
- shards install
install:
- crystal build --error-on-warnings src/invidious.cr
script:
- crystal tool format --check
- crystal spec
- stage: build_docker
services:
- docker
install:
- docker-compose build
Works fine when the version specification is moved outside the build stage to the root right next to dist: bionic
.