forked from inspirehep/hepcrawl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (68 loc) · 3.18 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
# -*- coding: utf-8 -*-
#
# This file is part of hepcrawl.
# Copyright (C) 2015, 2016, 2017 CERN.
#
# hepcrawl is a free software; you can redistribute it and/or modify it
# under the terms of the Revised BSD License; see LICENSE file for
# more details.
sudo: false
language: python
services:
- docker
python:
- '2.7'
env:
global:
- EXTRAS=docs,tests
- DOCKER_COMPOSE_VERSION=1.13.0
- DOCKER_DATA=/tmp/hepcrawl_docker_data
- BASE_USER_UID=2000
- BASE_USER_GID=2000
matrix:
- SUITE=unit
- SUITE=functional_wsp
- SUITE=functional_arxiv
- SUITE=functional_desy
- SUITE=functional_cds
- SUITE=functional_pos
matrix:
fast_finish: true
before_install:
- travis_retry pip install twine wheel coveralls check-manifest
- sudo rm -f /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- travis_retry docker-compose -f docker-compose.deps.yml run --rm pip
- travis_retry docker-compose -f docker-compose.test.yml run --rm scrapyd-deploy
script:
- travis_retry docker-compose -f docker-compose.test.yml run --rm ${SUITE}
after_success:
- docker-compose -f docker-compose.test.yml kill -s SIGTERM
- docker-compose -f docker-compose.test.yml rm -f
- coverage combine
- sed -i 's@\"/code/@'"\"$(pwd)/"'@g' .coverage
- coveralls
notifications:
email: false
deploy:
- provider: pypi
user: inspirehep
password:
secure: JRlzmzXjqr0c8m8nWwvDwmbPVuA64SanUMX6hqqtCOqHW06LMyC51MQr4mkq0SFLxLQsh2aPNmVB7IAO1ZR44cQh+1ECZgM6+cRfwb5lEJFsnVhaGV+VVwUUBYRjrb/IOui05nOlxp+aIOOqhegTcMzt7dsBnVBQgI87t2j4BOe6d6j+qoMALmltXbPcaiLATFAjqJq/AFEJlHiLFozWAU5m2H1OTUkHv5FOV31VdQwNfhFAzTegO1anTSkKiGAz1E1ihsKoRGoa00cw7H9woqrSOEHnrzdziZQtbVutSoiHFBDqIpBmxhcMHUl12KnjQUSaCFrDryD2PbLoJ6EGKydJWBLPMNMQVvK6mkcoMIuJxNRYW7Y4PLqBf8neAYpW/Wvnov80vlkRLic/Kwz+iDgmW2UhQUqLjJIp5fNdhHbI4EI0MZ1tchLaXVeQpdAa6tk6yIFhRLrvf8+Wz4c5yH6GM95qHOlh9I+/6ubZbMWO1AhSV510eUsh8M0CvGTb3VeI7mSMHe+Jur5gv+M+Nlerszx19k6aPH0vYM2NXpjSTKqW3t7H+ebxCnXpbgiwPKaBKWscCdH8Ru9HEvug2CtfoPyS3A+TYs7CpsmmEETEL9RNH3dQmNAhStilWI21kISEznNgCkhZZ082+Z19/I9vXg5X/fgKl+nK+zcdScw=
on:
branch: master
python: 2.7
distributions: sdist
repo: inspirehep/hepcrawl
- provider: pypi
user: inspirehep
password:
secure: JRlzmzXjqr0c8m8nWwvDwmbPVuA64SanUMX6hqqtCOqHW06LMyC51MQr4mkq0SFLxLQsh2aPNmVB7IAO1ZR44cQh+1ECZgM6+cRfwb5lEJFsnVhaGV+VVwUUBYRjrb/IOui05nOlxp+aIOOqhegTcMzt7dsBnVBQgI87t2j4BOe6d6j+qoMALmltXbPcaiLATFAjqJq/AFEJlHiLFozWAU5m2H1OTUkHv5FOV31VdQwNfhFAzTegO1anTSkKiGAz1E1ihsKoRGoa00cw7H9woqrSOEHnrzdziZQtbVutSoiHFBDqIpBmxhcMHUl12KnjQUSaCFrDryD2PbLoJ6EGKydJWBLPMNMQVvK6mkcoMIuJxNRYW7Y4PLqBf8neAYpW/Wvnov80vlkRLic/Kwz+iDgmW2UhQUqLjJIp5fNdhHbI4EI0MZ1tchLaXVeQpdAa6tk6yIFhRLrvf8+Wz4c5yH6GM95qHOlh9I+/6ubZbMWO1AhSV510eUsh8M0CvGTb3VeI7mSMHe+Jur5gv+M+Nlerszx19k6aPH0vYM2NXpjSTKqW3t7H+ebxCnXpbgiwPKaBKWscCdH8Ru9HEvug2CtfoPyS3A+TYs7CpsmmEETEL9RNH3dQmNAhStilWI21kISEznNgCkhZZ082+Z19/I9vXg5X/fgKl+nK+zcdScw=
on:
tags: true
python: 2.7
distributions: sdist
repo: inspirehep/hepcrawl