Skip to content

Commit b960e2d

Browse files
Merge pull request #9 from Ensembl/jalvarez/update_cicd
Move CI pipeline from Travis to GitHub Actions
2 parents bbc0669 + f00ffc2 commit b960e2d

File tree

6 files changed

+102
-36
lines changed

6 files changed

+102
-36
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# See the NOTICE file distributed with this work for additional information
2+
# regarding copyright ownership.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: "CI"
17+
18+
on:
19+
push:
20+
branches:
21+
- master
22+
pull_request:
23+
24+
defaults:
25+
run:
26+
working-directory: ./
27+
28+
jobs:
29+
tests:
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- uses: shogo82148/actions-setup-perl@v1
36+
with:
37+
perl-version: "5.28"
38+
39+
- name: Install dependencies
40+
run: |
41+
sudo apt-get install -y wget python3 python3-pip python3-setuptools mysql-client libmysqlclient-dev libdb-dev g++-10 bedtools r-base
42+
make install_REST
43+
make install_ensembl
44+
make install_repeats
45+
make install_pangenes
46+
PERL5LIB=$PWD/lib:$PERL5LIB
47+
export PERL5LIB
48+
shell: bash
49+
50+
- name: Run tests
51+
run: |
52+
make test_travis
53+
make test_repeats_travis
54+
make test_pangenes

.github/workflows/notice.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# See the NOTICE file distributed with this work for additional information
2+
# regarding copyright ownership.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: "Update NOTICE copyright year at the start of every year"
17+
18+
on:
19+
schedule:
20+
- cron: '15 15 1 1 *'
21+
22+
jobs:
23+
notice_update:
24+
name: Update NOTICE copyright year
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Update NOTICE file
31+
run: |
32+
sed -i "s/$(date +%Y --date='1 year ago')/$(date +%Y)/" NOTICE
33+
34+
- uses: EndBug/add-and-commit@v9
35+
with:
36+
add: 'NOTICE'
37+
message: 'Update NOTICE copyright year'

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

LICENSE

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Apache License
1+
Apache License
22
Version 2.0, January 2004
33
http://www.apache.org/licenses/
44

@@ -178,16 +178,15 @@
178178
APPENDIX: How to apply the Apache License to your work.
179179

180180
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "{}"
181+
boilerplate notice, with the fields enclosed by brackets "[]"
182182
replaced with your own identifying information. (Don't include
183183
the brackets!) The text should be enclosed in the appropriate
184184
comment syntax for the file format. We also recommend that a
185185
file or class name and description of purpose be included on the
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
190-
Copyright [2016-2020] EMBL-European Bioinformatics Institute
189+
Copyright [yyyy] [name of copyright owner]
191190

192191
Licensed under the Apache License, Version 2.0 (the "License");
193192
you may not use this file except in compliance with the License.
@@ -200,4 +199,3 @@
200199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201200
See the License for the specific language governing permissions and
202201
limitations under the License.
203-

NOTICE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Ensembl
2+
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
3+
Copyright [2016-2024] EMBL-European Bioinformatics Institute
4+
5+
This product includes software developed at:
6+
- EMBL-European Bioinformatics Institute
7+
- Wellcome Trust Sanger Institute

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ from your own scripts and for masking & annotating
77
[repeats](#repeat-masking-and-annotation) and
88
[calling pangenes](#pangenes) in plant genomes.
99

10-
[![Build Status](https://travis-ci.com/Ensembl/plant-scripts.svg?branch=master)](https://app.travis-ci.com/Ensembl/plant-scripts)
10+
[![Build Status](https://github.com/Ensembl/plant-scripts/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Ensembl/plant-scripts/actions/workflows/ci.yml)
1111

1212
- [List of recipes](#list-of-recipes)
1313
- [Dependencies of recipes](#dependencies)

0 commit comments

Comments
 (0)