This repository has been archived by the owner on Oct 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
53 lines (48 loc) · 3.21 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
language: generic
git:
depth: false
env:
global:
# The secure keys below were generated by running
#
# travis encrypt [ENVIRONMENT VARIABLE]=[secret]
#
# We have one secret per environment variable. Read more about travis
# secrets at: https://docs.travis-ci.com/user/encryption-keys#usage
# ANACONDA_TOKEN
# This token was obtained from: https://anaconda.org/ScottishCovidResponse/settings/access
#
# The conda access token expires in 07/03/21. After that, a new one needs
# to be issued. If it is not, the build will still succeed, but it won't be
# possible to make new conda releases.
- secure: ainXhSLEW/D8LYJlmil36SeNfVAP1l9LLVewL/1xhSUgX8eP5MMiFbeaQB0qMNYYP3PKn2xNYuQRxTgmRGvvnDte6OXHv1Zs9LbFlTeZQm5sVEOt37Ey7hJxv+m7AHw7HHyB/tEdnY2NBk4LSLh8ZwFmP4bNhAsoGz0O0dpvnsd9ZNubATEAmsQGZd7wJIvKVq854xaiquS2sbU2kvAnH+DKHcy7Lmr3HQWnWFGPgVOTdR6VS9yxx+a+hJtFxGy+Zp6/t8hEtpF6JQyOglXWctTm8j9O8IDFOizIak+rbwq/5R946SBr82SUrLtsuJh8lVapa0E45hnvfcmbSG3JrPYstWxOl2V+rR1clPjvHieQHYlZ9Ix4skZK79bqRnd9mr4Go+uPx9v5KxAiP2T6aj9XEm2hTWdaUSITpWymMhPiJItHrbllftYPHTQSW9yPnnfqoyApeF4QY0U1tCjfZUypni0UWMl15vekfsBMT53rzNlrDTbfKvMHG0cUbD9EJE+LycVcQ/6MmuJDaZDZk8yVWpoCU5CenmooC+py4PiUnAfSPXQwRAtGplFbV746p3Ofe8sb54gVSKJPwqSExx9ccq89w9nMt06M1KX/r+OC6d94MnnuZknYGDOCoAkpYmHhnLZwwOA0H3rtC1LrjkNodkzH89Nde0aOTJQW0qs=
# TWINE_PASSWORD
# This token was obtained from: https://pypi.org/manage/project/data-pipeline-api/settings
#
# TODO: create a service account based on scrc@glasgow.ac.uk to hold the
# token, rather than using someone else's acocunt for this
# (https://pypi.org/user/almeidaraf/ currently)
- secure: ZkM0H4YRKOB6poRDH6/sJjS3C4L3+AE9Vwwt/7y2S9ApN+r2UGDKxXpd9sY+VPqk9s0IdmeI22pQNhyMLm+KuMuObNNZJR1KTxeDDy3fEGh1K5bEPl6N8MVHdOj5/S1Xvu8TKl2x7ODCxGwjwTArdOsTtrDUTsxI3x2C+vpzYNP5f1ztAkiNbi74U5ws2g7xPxlvSKOVCC6e0/m6r8/NSAMXA910wZaovb07JsfRWOA2nIityI8ezTJCZyK1esquzOzRjDYm5xCoZoKUFGOxCQBjNEJP60y5QGjAXPFh2y9r+Ll/klUWiml/Kd0W1ZWLY1v21QCYj3YOmtYk1Gbq73UJBd9LnpE3/+G617gyBRo2yWFNgCT7/TBUDqxjcc29FmmQls+Jzd4dkEwckLII58MPlXf+U6SbCmEj+nNyZGsDvsf8euBcziB4Vy1GrGNj61wfOfjp/8+P1efHzpdMmk24BQvz2ywXWvL5EH3NbsQi1eOIuCF/d2upsigMIVqlgZ8yGT2NUXZJoY2/dYH59i93BPavJkdLB+86eUUzA39zmcF/S39yFwtDHAKmq15v8czTR6xK0ctPmRs4y72GGUui0A6fppwgoUPAMHctNO7kdhTrsU4Ux/bzIQ6RQ1/E0kfAiuFMif/oq4wHHuECh1+kMTBdsLxr1lOG4ai+8Lo=
matrix:
include:
- name: "Conda Python with .yml-file"
language: python
install:
- sudo apt-get update && sudo apt-get install -y wget
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda env create environment.yml
- conda activate data_pipeline_api
script:
- pytest --cov=data_pipeline_api || travis_terminate 1
- conda install setuptools_scm pkginfo conda-build anaconda-client twine
- python setup.py bdist_wheel
- python setup.py sdist
- scripts/release.sh
after_success:
- coverage xml
- bash <(curl -s https://codecov.io/bash)