Travis CI and Slack.

Travis.com y Slack.com

The project to be worked on is seen as follows:

alt text

First it is necessary to generate a [Token] (https://my.slack.com/services/new/travis) and select the channel that travis will use to notify the results of the tests.

It is very important to [encrypt] (https://docs.travis-ci.com/user/encryption-keys/) the access credentials.

alt text

alt text

Within the .travis.yml file add the configuration to notify with a skeleton to better see the message:

1
2
3
4
5
6
7
8
notifications:
slack: juvenal-yescas:96zh2rkFBSND78sdGgL93QME
email: false
on_success: always
on_failure: always
template:
- "Build *<%{build_url}|#%{build_number}>* (<%{compare_url}|%{commit}>) of %{repository_slug}@%{branch} "
- "by _%{author}_ %{result} in %{duration}"

When making a commit, travis will begin to perform the test.

alt text

alt text

In Slack it is observed in the following way:

alt text

© 2020 Juvenal Yescas All Rights Reserved.
Theme by hiero