Mercurial > vim
annotate .cirrus.yml @ 33278:b5ed566262d3 v9.0.1906
patch 9.0.1906: Vim9: Interfaces should not support class methods and variables
Commit: https://github.com/vim/vim/commit/92d9ee5f4ca0d2de04c39afbafc7609da43fb2e9
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Sep 17 17:03:19 2023 +0200
patch 9.0.1906: Vim9: Interfaces should not support class methods and variables
Problem: Vim9: Interfaces should not support class methods and
variables
Solution: Make sure interface follow the interface specification
Vim9 interface changes to follow the new interface specification:
1) An interface can have only read-only and read-write instance
variables.
2) An interface can have only public instance methods.
3) An interface cannot have class variables and class methods.
4) An interface cannot have private instance variables and private
instance methods.
5) A interface can extend another interface using "extends". The
sub-interface gets all the variables and methods in the super
interface.
That means:
- Interfaces should not support class methods and variables.
- Adjust error numbers and add additional tests.
- Interface methods can be defined in one of the super classes.
- Interface variables can be defined in one of the super classes.
and instance variables can be repeated in sub interfaces.
- Check the class variable types with the type in interface.
closes: #13100
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Sep 2023 17:15:06 +0200 |
parents | 267308bfae50 |
children | 42b89193ab3e |
rev | line source |
---|---|
18728
9f1cf1458708
patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents:
18722
diff
changeset
|
1 env: |
18736
97d534e17874
patch 8.1.2358: tests fail on Cirrus CI for FreeBSD
Bram Moolenaar <Bram@vim.org>
parents:
18728
diff
changeset
|
2 CIRRUS_CLONE_DEPTH: 3 |
18728
9f1cf1458708
patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents:
18722
diff
changeset
|
3 FEATURES: huge |
9f1cf1458708
patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents:
18722
diff
changeset
|
4 |
28729
1bd1bfc64a47
patch 8.2.4889: CI only tests with FreeBSD 12
Bram Moolenaar <Bram@vim.org>
parents:
28658
diff
changeset
|
5 freebsd_task: |
1bd1bfc64a47
patch 8.2.4889: CI only tests with FreeBSD 12
Bram Moolenaar <Bram@vim.org>
parents:
28658
diff
changeset
|
6 name: FreeBSD |
1bd1bfc64a47
patch 8.2.4889: CI only tests with FreeBSD 12
Bram Moolenaar <Bram@vim.org>
parents:
28658
diff
changeset
|
7 matrix: |
33238
6c1d29d45734
patch 9.0.1892: CI: no FreeBSD 14 support
Christian Brabandt <cb@256bit.org>
parents:
32735
diff
changeset
|
8 - name: FreeBSD 14.0 |
6c1d29d45734
patch 9.0.1892: CI: no FreeBSD 14 support
Christian Brabandt <cb@256bit.org>
parents:
32735
diff
changeset
|
9 freebsd_instance: |
6c1d29d45734
patch 9.0.1892: CI: no FreeBSD 14 support
Christian Brabandt <cb@256bit.org>
parents:
32735
diff
changeset
|
10 image_family: freebsd-14-0 |
23225
b2660a8bbf36
patch 8.2.2158: CI on cirrus times out, coveralls doesn't always run
Bram Moolenaar <Bram@vim.org>
parents:
21580
diff
changeset
|
11 timeout_in: 20m |
18722
3bc59131171f
Cirrus CI: add a simple CI using BSD
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 install_script: |
28658
3a4ed4d1080d
patch 8.2.4853: CI with FreeBSD is a bit outdated
Bram Moolenaar <Bram@vim.org>
parents:
23225
diff
changeset
|
13 - pkg install -y gettext |
18722
3bc59131171f
Cirrus CI: add a simple CI using BSD
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
14 build_script: |
18728
9f1cf1458708
patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents:
18722
diff
changeset
|
15 - NPROC=$(getconf _NPROCESSORS_ONLN) |
9f1cf1458708
patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents:
18722
diff
changeset
|
16 - ./configure --with-features=${FEATURES} |
9f1cf1458708
patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents:
18722
diff
changeset
|
17 - make -j${NPROC} |
21580
93dae47699fb
patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Bram Moolenaar <Bram@vim.org>
parents:
20299
diff
changeset
|
18 test_script: |
18728
9f1cf1458708
patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents:
18722
diff
changeset
|
19 - src/vim --version |
21580
93dae47699fb
patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Bram Moolenaar <Bram@vim.org>
parents:
20299
diff
changeset
|
20 # run tests as user "cirrus" instead of root |
93dae47699fb
patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Bram Moolenaar <Bram@vim.org>
parents:
20299
diff
changeset
|
21 - pw useradd cirrus -m |
93dae47699fb
patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Bram Moolenaar <Bram@vim.org>
parents:
20299
diff
changeset
|
22 - chown -R cirrus:cirrus . |
93dae47699fb
patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Bram Moolenaar <Bram@vim.org>
parents:
20299
diff
changeset
|
23 - sudo -u cirrus make test |