Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected keys apt, elapsed_time and on_pull_requests #121

Open
cas-- opened this issue Aug 8, 2017 · 2 comments
Open

Unexpected keys apt, elapsed_time and on_pull_requests #121

cas-- opened this issue Aug 8, 2017 · 2 comments

Comments

@cas--
Copy link

cas-- commented Aug 8, 2017

Although below config snippet works on Travis, running it through the linter results in:

    in notifications.slack.template section: unknown template variable elapsed_time
    in notifications.slack section: unexpected key on_pull_requests, dropping
    value for addons section is empty, dropping
    in addons section: unexpected key apt, dropping
language: python

addons:
  apt:
    packages:
    - aspell

notifications:
  slack:
    rooms:
      - secure: abc
    on_pull_requests: false
    template:
      - "Build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) of %{repository}@%{branch} in PR <%{pull_request_url}|#%{pull_request_number}> by %{author} %{result} in %{elapsed_time}"
@cas-- cas-- changed the title Unexpecting keys apt, elapsed_time and on_pull_requests Unexpecting keys apt, elapsed_time and on_pull_requests Aug 8, 2017
@cas-- cas-- changed the title Unexpecting keys apt, elapsed_time and on_pull_requests Unexpected keys apt, elapsed_time and on_pull_requests Aug 8, 2017
@ntwb
Copy link

ntwb commented Aug 12, 2017

I was about to report the addons issue, I'll piggy back this onto this issue here:

The docs at https://docs.travis-ci.com/user/installing-dependencies/#Adding-APT-Packages state:

addons:
  apt:
    packages:
    - cmake
    - time

So the linter or the docs should be updated

@thomaseizinger
Copy link

Same thing for the notifications.slack section. The syntax is described here: https://docs.travis-ci.com/user/notifications/#Notifications-of-PR-builds
The link links to the hipchat section but I think the configuration is the same for any channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants