# Crystal and shards commands are not installed properly in Crystal nightly

**URL:** <https://travis-ci.community/t/crystal-and-shards-commands-are-not-installed-properly-in-crystal-nightly/2502>\
**Category:** Crystal\
**Created:** [March 1, 2019, 11:34pm UTC](https://travis-ci.community/t/crystal-and-shards-commands-are-not-installed-properly-in-crystal-nightly/2502 "2019-03-01T23:34:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnavb](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@arnavb](https://travis-ci.community/u/arnavb)\
**Post date:** [March 1, 2019, 11:34pm UTC](https://travis-ci.community/t/crystal-and-shards-commands-are-not-installed-properly-in-crystal-nightly/2502/1 "2019-03-01T23:34:56Z")

</div>

I’m trying to setup my [crystal project](https://github.com/arnavb/github-cr) on Travis CI. This is my current `.travis.yml`:

```auto
language: crystal

crystal:
  - latest
  - nightly

script:
  - crystal spec --verbose

branches:
  only:
    - master
    # Tags
    - /^v\d+\.\d+(\.\d+)?(-\S*)?$/

```

For stable, the code is built and tested. However, for nightly, I get this in the build log:

```auto
Crystal for Travis-CI is not officially supported, but is community maintained.
Please file any issues using the following link
  https://github.com/travis-ci/travis-ci/issues/new?labels=community:crystal
and mention `@jhass`, `@matiasgarciaisaia`, `@waj` and `@will` in the issue
$ crystal --version
No command 'crystal' found, did you mean:
 Command 'gcrystal' from package 'gcrystal' (universe)
crystal: command not found
$ shards --version
shards: command not found
$ shards install
shards: command not found
The command "shards install" failed and exited with 127 during .
Your build has been stopped.

```

As evident, something is wrong because both the `crystal` and `shards` commands are not present. The build job that caused this is [here](https://travis-ci.org/arnavb/github-cr/jobs/500597540). I restarted the job once already to verify the presence of the error.

[Link to raw build log](https://api.travis-ci.org/v3/job/500597540/log.txt)

On a side note, the CI message directing users to ask about Travis CI problems on Github issues is out of date; it should link here instead.

/cc @jhass, @matiasgarciaisaia, @ waj, @ will

(I can only mention two users as I’m a new user)

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [March 2, 2019, 2:51am UTC](https://travis-ci.community/t/crystal-and-shards-commands-are-not-installed-properly-in-crystal-nightly/2502/2 "2019-03-02T02:51:20Z")

</div>

The `crystal-nightly` package is missing from the repository.

[https://travis-ci.org/arnavb/github-cr/jobs/500597540#L397](https://travis-ci.org/arnavb/github-cr/jobs/500597540#L397)

I don’t know who’s responsible, but I tend to think this is an upstream issue.

---

<div class="post-metadata">

**Author:** ![jhass](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jhass/32/357_2.png) [@jhass](https://travis-ci.community/u/jhass)\
**Post date:** [March 2, 2019, 5:14pm UTC](https://travis-ci.community/t/crystal-and-shards-commands-are-not-installed-properly-in-crystal-nightly/2502/3 "2019-03-02T17:14:22Z")

</div>

We’re tracking this at [https://github.com/crystal-lang/crystal/issues/5836](https://github.com/crystal-lang/crystal/issues/5836)
