Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@k-takata
Copy link
Member

Now the official Vim repository is on GitHub, we can easily use many CI services.
This PR adds setting files for the following CI services:

  • Travis CI
  • Coveralls
  • AppVeyor

These setting files were written for vim-ci by vim-jp members.

Here are the sample results:

Note: In order to use these settings, someone needs to set up accounts for the services.

Import .travis.yml and appveyor.yml from vim-jp/vim-ci.
vim-jp/vim-ci's directory structure was different from the vim/vim's.
@crazymaster
Copy link

I think that $TEST is unnecessary.

appveyor.yml Outdated

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this vim-jp/vim-ci's directory structure?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! This line is not needed. We can use the default folder.
I will update later.

$TEST was used when small and tiny features didn't pass tests.
There's no need to use clone_folder option.
@k-takata
Copy link
Member Author

Updated.

@chrisbra
Copy link
Member

chrisbra commented Sep 9, 2015

Bram, what is your opinion on integrating this patch? I think it would be good to have this included, right?

@mattn
Copy link
Member

mattn commented Sep 10, 2015

👍

1 similar comment
@koron
Copy link

koron commented Sep 15, 2015

👍

brammool added a commit that referenced this pull request Sep 15, 2015
Problem:    Not using CI services available.
Solution:   Add configuration files for travis and appveyor. (PR #401)
@chrisbra chrisbra closed this Sep 15, 2015
@k-takata
Copy link
Member Author

Thank you for merging this.

Next step is setting up CI accounts.
I think @chrisbra can also set up the team account and the project on Travis-CI and Coveralls.
I don't know how to set up a team account on AppVeyor. Maybe it's better to set up the project on an owner's personal account.

After the setup, it might be better to add badges to README.md.
E.g.

diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -1,5 +1,8 @@
 `README.md` for version 7.4 of Vim: Vi IMproved.

+[![Build Status](https://travis-ci.org/vim/vim.svg?branch=master)](https://travis-ci.org/vim/vim)
+[![Coverage Status](https://coveralls.io/repos/vim/vim/badge.svg?branch=master&service=github)](https://coveralls.io/github/vim/vim?branch=master)
+[![Build status](https://ci.appveyor.com/api/projects/status/<project-key>/branch/master?svg=true)](https://ci.appveyor.com/project/<user-name>/vim/branch/master)

 ## What is VIM ##

(<project-key> and <user-name> should be changed appropriately.)

@k-takata
Copy link
Member Author

Why the comments on this PR are not redirected to vim_dev?
I can only see my first comment. https://groups.google.com/d/topic/vim_dev/M1jf47u8OhY/discussion

@crazymaster
Copy link

I don't know how to set up a team account on AppVeyor. Maybe it's better to set up the project on an owner's personal account.

I found how to create Appveyor account for Github organizations.
http://help.appveyor.com/discussions/questions/1154-appveyor-account-for-github-organizations

@chrisbra
Copy link
Member

Why the comments on this PR are not redirected to vim_dev?

There was once a problem on githubs site, that resulted in the vim-dev user not getting notifications. This should be fixed now, but notifications for such old issues and PR are not generated.
That should be fixed with newly created issues and PRs

I'll look into creating those team accounts for travis-ci, coveralls and appveyor.

@brammool
Copy link
Contributor

Ken Takata wrote:

Thank you for merging this.

Next step is setting up CI accounts.
I think @chrisbra can also set up the team account and the project on Travis-CI and Coveralls.
I don't know how to set up a team account on AppVeyor. Maybe it's better to set up the project on an owner's personal account.

Apparently Christian has done something, I received requests from three
apps to access private data in the Vim project. What I don't understand
is why private access is requested. The apps should only use the public
data.

I recommend ordering large cargo containers of paper towels to make up
whatever budget underruns you have. Paper products are always useful and they
have the advantage of being completely flushable if you need to make room in
the storage area later.
(Scott Adams - The Dilbert principle)

/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\ an exciting new programming language -- http://www.Zimbu.org ///
\ help me help AIDS victims -- http://ICCF-Holland.org ///

@chrisbra
Copy link
Member

Yes I did. Not sure, what is meant by private. I requested access to those services Appveyor, Appveyor CI (this one wants to access private repositories, which I think do not exist and access has not been requested, I don't even understand, why there are 2 Appveyor services), Coveralls and Travis-CI both of which do not request private data.

In any case, access rights can be removed later by checking the services property in the settings section of the repository.

@chrisbra
Copy link
Member

Screenshot of what has been requested:
appveyor
appveyor-ci
coveralls
travis-ci

@k-takata
Copy link
Member Author

In my case, the following permissions are required:

  • AppVeyor
    • Read org and team membership
    • Access user email addresses (read-only)
  • AppVeyor CI
    • Full control of repository hooks
    • Read org and team membership
    • Access commit status
  • Coveralls
    • Read org and team membership
    • Access commit status
    • Access user email addresses (read-only)
  • Travis CI
    • Read org and team membership
    • Access commit status
    • Access deployment status
    • Access user email addresses (read-only)
    • Write repository hooks

AppVeyor CI doesn't need the "Access private repositories" permission. Some setting might be wrong.

@brammool
Copy link
Contributor

Christian -

Screenshot of what has been requested:
appveyor
appveyor-ci
coveralls
travis-ci

Most of that appears to be harmless. Only Travis-ci requests "Write
repository hooks". Don't know what that is but "write" seems
potentially harmful.

  • Bram

A radioactive cat has eighteen half-lives.

/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\ an exciting new programming language -- http://www.Zimbu.org ///
\ help me help AIDS victims -- http://ICCF-Holland.org ///

@koron
Copy link

koron commented Sep 21, 2015

@brammool

Only Travis-ci requests "Write repository hooks". Don't know what that is
but "write" seems potentially harmful.

According to http://docs.travis-ci.com/user/github-oauth-scopes/

Building a new repository on Travis CI is as easy as enabling it in your
profile and pushing a new commit.

Updating the webhook required for us to be notified from GitHub on new
commits or pull requests requires this API scope. Additionally, your user
needs to have admin access to the repository you want to enable.

This page contains descriptions for other permissions.

@2072
Copy link
Contributor

2072 commented Sep 21, 2015

@brammool

From what I understand Write repository hooks just means that you authorize the applications to add hooks to your repository. These can be actions that are triggered whenever the repository is modified by some action (commits, history rewrite, etc...).

More about git hooks: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

@chrisbra
Copy link
Member

Most of that appears to be harmless.

So you do approve those requests?

@chrisbra
Copy link
Member

Bram, please add those badges to the README.md:

[![Build Status](https://travis-ci.org/vim/vim.svg?branch=master)](https://travis-ci.org/vim/vim)
[![Coverage Status](https://coveralls.io/repos/vim/vim/badge.svg?branch=master&service=github)](https://coveralls.io/github/vim/vim?branch=master)

(haven't been able to get appveyor to see the vim repository yet)

@brammool
Copy link
Contributor

Christian Brabandt wrote:

Bram, please add those badges to the README.md:
Build Status
Coverage Status

Done. Noticed that I forgot to include the test file change in 7.4.879.

(haven't been able to get appveyor to see the vim repository yet)

hundred-and-one symptoms of being an internet addict:
10. And even your night dreams are in HTML.

/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\ an exciting new programming language -- http://www.Zimbu.org ///
\ help me help AIDS victims -- http://ICCF-Holland.org ///

@crazymaster
Copy link

Hi,

Travis-ci builds even if you push tags.
So, please add this code to the .travis.yml not to build if you push tags.

branches:
  except:
    - /^v[0-9]/

Regards,
Kenichi Ito

@brammool
Copy link
Contributor

Kenichi Ito wrote:

Travis-ci builds even if you push tags.
So, please add this code to the .travis.yml not to build if you push tags.

branches:
  except:
    - /^v[0-9]/

I'll include it, thanks.

hundred-and-one symptoms of being an internet addict:
13. You refer to going to the bathroom as downloading.

/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\ an exciting new programming language -- http://www.Zimbu.org ///
\ help me help AIDS victims -- http://ICCF-Holland.org ///

@k-takata
Copy link
Member Author

@brammool @chrisbra
Is there any progress with appveyor setting?

@chrisbra
Copy link
Member

@k-takata appveyor has not been granted access to the vim repository. Have requested it again. @brammool please approve.

@chrisbra
Copy link
Member

Okay, I think I have configured appveyor. I am not sure, if this now runs automatically, whenever a commit is made, but we'll see soon. @brammool Please include this badge to README.md

[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/o2qht2kjm02sgghk?svg=true)](https://ci.appveyor.com/project/chrisbra/vim)

@crazymaster
Copy link

https://ci.appveyor.com/project/chrisbra/vim

Why not under vim/vim?

@chrisbra
Copy link
Member

Why not under vim/vim?

That's because only the project owner can do that. I don't think this is a problem however, it tests the vim/vim master branch.

@k-takata
Copy link
Member Author

Thank you all.
Now we can see the results of Travis-CI, Coveralls and AppVeyor on the top page.
vim-readme

I'm so glad about this.

@k-takata k-takata added the CI GHA, Cirrus, AppVeyor, ... label Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI GHA, Cirrus, AppVeyor, ...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants