Skip to content

Commit

Permalink
Use Github package release for vip-utils dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bartcharbon committed Sep 29, 2022
1 parent 052f881 commit 0de484b
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ addons:
organization: molgenis
token:
secure: B8j40t3XBkCA3hruTtZH1AP1H2QhZFYKHrpvwpfo9cYihP4h6ynXeelyEhPbjao4flAnCtiNzUXq7/qAb7di1SPA+607Ip12EGxPwLGosoQlNEHY1js06mpzSqUh80cZDz1SAzJpvkGQjUHPUud2Namx4cQhdng++t5D5SlI7GZbqqC66/34UGI/qIy2CynNA2BFZRZ7u8HuU8wGenAGcXWP4aFZrVPc9Jr0hzSEYQTg5KizWdqiZ5aCEm8Z7ikJtyyTx2ILIJHOk0ybofwpo9X+gz0MxVhTR1F44WM/sducG2dfdFfstneVDP9qWuxdmV7k2d/YjwtLUlPLLmNxXWcsL/8qGP3vo5793o6+MA2yqSfriTm5ahOdgDiewQYZf/MtR6muRVj58WGITCCz4ITJQpg9ouZBgaae6spGC7yQkHfvy3AiVGXzrIJOav7g0e2ZZ0ctYqQHvqosy94JT1pSsTcwyzyAGsWz0CS9fECG4V4RAoWDP3owR5wyHFvbQjZHHRAeVrI4yfw/BGxVDnX+rhEbdRlEbhGTHkmgHuQDf2dGYvPVLEoYT6H73vL2HyAGFhzW0bqY2wNqBwXC9xn4rZ9vvpIS/nqdyBA7ZYNi9oHERf6YkhLfObSiobdtGzgyY+InsMH85DOL9//rWOwOVccruA8GGG2f0wA6YKc=
before_install:
- cp travis.settings.xml $HOME/.m2/settings.xml
script:
- mvn clean install sonar:sonar -Pcoverage -Dsonar.projectKey=molgenis_vip-inheritance-matcher
deploy:
Expand All @@ -25,3 +27,6 @@ deploy:
on:
tags: true
edge: true # opt in to dpl v2
env:
global:
secure: HBaGhT8uZ+zt8aPqHkRkPk7mc80bzSwRHV+CbaT9d+Hc6j1snlENdqg3jrz6x1FAHbjnq50veeXkUxgVhVzfX+ip5hjxNzYZGiXv16ywtf0RQy8UGygTkRQtSKfwG9uVjnZ/YnpJhKWn7iuXxz2Rtpwix/Wwv8OyoHLUirq6/m9dpU0TUKG1yF605z/6U5Zyp/OhSY13iwRYW/AoScQCE2sDz7KYEpcknVbkyGy7w5w40EpVcetknu7MZlY3PZVpjpe19Ns+UIjxcAb12DlZ+W3V/tnO4XkQnBuZoe7TZRoMhgaaMETGsUv7g45rBjei/oQHX50/wxT+hv54jAo2rFAjFuHd+HsgT120vhcyifX2IHu22sC947vlj4cKqVElxU93Qx1Bb4Klx8TABNaPMrBPLIJ0yeNe/8DhWqIXtPGhDUSLC6pgMQc211iJwHKREtA3W2hgZJ8v1yUTja2vIhJRTjS9Ov4VCauqsN1XiV9iccbJw7oKQSHN8SmLuM9cYOcZ1RbM0xYuDSocgPpSba9Yakb/0d1TIjTx57vhn9GZylnuVEehPWAHCOBIz3hRxQ6Q8wBnIWj0yDewKZf8+QtLg7fAdpny9G7nWyQ09Cbg2QUJSzhv+S0Foj11dx9PM625TqxRtfm70B1pDCE7JRhbSp4FASMSF3AN4Vfzi3k=
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,50 @@ annotates VCF samples with denovo and possible compound flags and matching inher
Input VCF file should contain single ALT alleles per line and be annotated VEP.
Input should be annotated with [VIP inheritance VEP plugin](https://github.com/molgenis/vip/blob/master/resources/vep/plugins/Inheritance.pm) For full functionality.


# Installation

Generate a personal access token in Github with at least the scope "read:packages".

Then add a settings.xml to your mave .m2 folder, or edit it if you already have one. It should
contain the following:

```
<?xml version="1.0"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/SETTINGS/1.0.0">
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/molgenis/vip-utils</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>[YOUR VIP USERNAME]</username>
<password>[YOUR PERSONAL ACCESS TOKEN]</password>
</server>
</servers>
</settings>
```

###Added Sample information
```
##FORMAT=<ID=VI,Number=.,Type=String,Description="An enumeration of possible inheritance modes.">
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<commons.cli.version>1.4</commons.cli.version>
<jacoco-maven-plugin.version>0.8.7</jacoco-maven-plugin.version>
<samtools.htsjdk.version>2.21.3</samtools.htsjdk.version>
<vip.utils.version>v1.1.0</vip.utils.version>
<vip.utils.version>1.2.2</vip.utils.version>
</properties>

<profiles>
Expand Down Expand Up @@ -119,7 +119,7 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.github.molgenis</groupId>
<groupId>org.molgenis</groupId>
<artifactId>vip-utils</artifactId>
<version>${vip.utils.version}</version>
</dependency>
Expand All @@ -145,7 +145,7 @@

<dependencies>
<dependency>
<groupId>com.github.molgenis</groupId>
<groupId>org.molgenis</groupId>
<artifactId>vip-utils</artifactId>
</dependency>
<dependency>
Expand Down
36 changes: 36 additions & 0 deletions travis.settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">

<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/molgenis/vip-utils</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>

<servers>
<server>
<id>github</id>
<username>molgenis-vip-bot</username>
<password>${env.PAT_TOKEN}</password>
</server>
</servers>
</settings>

0 comments on commit 0de484b

Please sign in to comment.