forked from Ymagis/ClairMeta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
98 lines (84 loc) · 4.49 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
services:
- docker
dist: xenial
language: python
python:
- '2.7'
- '3.6'
env:
global:
- BINTRAY_USER=ymagis
- BINTRAY_ORG=ymagis
- BINTRAY_REPO=Clairmeta
- PIPENV_IGNORE_VIRTUALENVS=1
- secure: "IKV4DSNedoMP/uTPWHVnJp2E/K9JDKu/InMJGQkQR5hreJGpWw6Q2OWo9qIDXQ0PXX9k5Aw3k+w+/Utp6+lNHUzMuKk92CCZ5ieolTgzYzaN/eYDIPVnQhE/S7v06liQn8f1IgDl+/brEmDmWQm73aYGjlkt1jBWma0ZOXxPC3eBhUMIc/5pWJXwnGRSNREW1LxLami+C7uN02qZwd1eHU+RU71bt5uYFHKrhMHB40MGQx20YpJ/yMcGhhXNZHSvmzKIus27oPreP1hFc22xO3Mfjq4Vgz9qoEQolJZPe/v2bHtMKooTPAfeTAI36oNpiTvR3SHEYX3uVjOIcuG3QCNPkhXEWIgjUtj3SVlM19Nvb0qtGkQVZnVXHtRZKKdzWbnOYI0zwWj3OEhyCzUbsadUFqiWJ7FZwtkYCT7Kmdi6UzPAh2L7/gSOECj4RZgZgpjaApJ3ruSMz/pMzDq1U+Q25esj/JS9vJU8eaSrOjD2Fk1RxhI8WXMZutb6dcLo0eQIrYo5LN7UOVRzd19KoliWMOmUQrTYlSU08CK0IVog4+rVlw8PjJ71LP/+w/5IZtCyhkYqmFSdwdNkQNKrydQE7jNZ6iZnkMmx9LLzwQ2HbamyjCQeoGHuK7SVlMXgkg0msqiyj5lpPnc5oZaTDCLJBUY9cDjxSYQDPOR7+/M="
install:
- export LC_ALL=C.UTF-8
- export LANG=C.UTF-8
# install keys
- sudo apt-get update
- sudo apt-get -y install dirmngr curl
# key for bintray
- gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 379CE192D401AB61
- gpg --export --armor 379CE192D401AB61 | sudo apt-key add -
# key for mediaarea
- curl http://mediaarea.net/repo/deb/ubuntu/pubkey.gpg | sudo apt-key add -
# add apt list
- source /etc/lsb-release
- echo "deb https://dl.bintray.com/ymagis/Clairmeta ${DISTRIB_CODENAME} main" | sudo tee /etc/apt/sources.list.d/clairmeta.list
- echo "deb https://mediaarea.net/repo/deb/ubuntu/ ${DISTRIB_CODENAME} main" | sudo tee /etc/apt/sources.list.d/mediaarea.list
# clairmeta dependencies
- wget https://mediaarea.net/repo/deb/repo-mediaarea_1.0-13_all.deb && sudo dpkg -i repo-mediaarea_1.0-13_all.deb
- sudo apt-get update
- sudo apt-get -y install asdcplib mediainfo sox
# install python environment
- pip install pipenv codecov
- pipenv install --dev
# create graph dependencies & checking
- pipenv graph
# fetch metadatas for unittests
- git clone https://github.com/Ymagis/ClairMeta_Data tests/resources
after_success:
- codecov
# This belong to default stage 'test'
script:
- pipenv run python -m compileall clairmeta
- pipenv run nosetests --nocapture --with-doctest --doctest-options=+ELLIPSIS --with-coverage --cover-package=clairmeta -v
# Stage conditions
stages:
- name: test
if: type IN (pull_request) OR tag =~ ^1 OR branch = develop
- name: deploy
if: tag =~ ^1
- name: packaging
if: tag =~ ^1
# Jobs
jobs:
include:
- stage: packaging
script:
- /bin/bash .travis/build_env.sh
- stage: deploy
script:
- echo "Deploying..."
- pipenv run python setup.py sdist bdist_wheel
deploy:
- provider: releases
skip_cleanup: true
api_key:
secure: NnuZ3rpD3VgJ+E0SQvfkP23SWyml4z/QBWJMHbT1mnacS7QPHYmg4kU3NBjd4RCXAorwD/PRZoexcISZsyaok2h5ck/Y7nNkQzzE6m+qBSOb4G/ae1+La6X8KuvuxqvJb9t084lwHdmPfTCLE32dz3IYf1ZHmQJ3kKOV0tPK+GgBEEr/tgyKQ38ktCGEq5Fg52zfzOgiPWkmkp9PZjuZBf47FpXAUj8jrkcgFLJmWVek7qd9igDLcO7RVISTLWlpgc/OLKIyiiOfXywPZcGlN6zI3ynR8DpyQ0gV0wsVacAwxuLKpZ3Ill93wvclOhIMQdGfOhLyOV1UyC8ud/nBGh9ScaP7UR0gAsJqile3huRHgwV2tgXbkExUy2zpEo/jn7CbBMCh2Wt6TJSeQZolN6eimgs3Io0Jke+w6W29WCPzhntNpwWtI6KbK8s/VCH9pD5uSwTMBUeAPQpj/2XV6SDfgHZkP7m2qZeRFTxwr4Af9W6l7otwF8d2VdxCbpitMUwviQeZrWbaacevBXJlri+W/XH/vFxo1LHJeETYpg+663rlqApCt+UpMyBP3cd4pNzddCY2PUycjWuwu9SDtf180iK4Sj4gsllYm2D5xG1YmZnCqw5xzXthTgZ+MpbF/619dNLZQxfJDBMchj9wBNiFpHKOoJPerIHHqs132hA=
file_glob: true
file: dist/*
on:
branch: master
tags: true
- provider: pypi
skip_cleanup: true
user: ymagis
password:
secure: GVlzWA7XFERLLrq22aiOWM/+omejQXH4tVmaKjfXODnRSmtKN1JG2t4IqniNYstILpwv+CjOi4ANdAw2lLwZzbF17XIU2JlKya7R7jPuZOYh3f+98wrVzDyuAjflQIxcutoKX0ILGd+7JxvmmqzQNAoD6PCCnlE+WG11Mg+gK5Nmh9YE07fvLLerlCFFpEfSUEPsvWRgIkivPxbTkhUjQy5EiqgbQ9cmhW5ERoug+U1Q2r55RRyayfxpxPg+ASzi1Jn9NetAVFgkt1uaTEeU5NqjlEE1Z1+T9VRmpzpNlEXFWvkSA6iQMiSgDcEhJ6H49WORUv678/wJNmE/iYtENugABnMbmqTw58GYrHD2HI652JFuUstnbnh9Wp92GEgyLOQ3bNZJxkxi0h+onBxH8ubagg5d+Y5WjY4RQFthO1uxdFEJJtsuEgA0nNGVMrEjY6H/129KG4Sxtwws7jwPmamgd8UlVRc24QE4hJRYwfbtO/OgYl7Fr16+6rtaMLjG+CQ0GcCP5D29A8ChJG0n1P1PK1G9h/bUqaDX3Itk1vnqQkvQ+lEBQff9GmYDN5YKHZbOuJp9m7NLr8CkLR8FlgiZjz9TcRuNYVJo0vOwsDXfs65i3O2/z6FTRTL6eDFHZ4x7Am2eYguDWWDqNOTGaYnGhWQSxk7xhv8hjFcIwko=
distributions: sdist bdist_wheel
on:
branch: master
tags: true
repo: Ymagis/ClairMeta