-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
39 lines (39 loc) · 1 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
language: python
os: linux
dist: focal
python:
- '3.8'
before_install:
- pip install poetry
install:
# Install packages with APT
# - make install-dep-packages
# When cython is needed to be installed separately
# - pip install cython
- make venv
# - make install-dep-packages
script:
- make install test
deploy:
- provider: releases
skip_cleanup: true
# Create a personal access token and store it in travis-ci as an environment variable
api_key: $GITHUB_TOKEN
file_glob: true
file: dist/*
on:
repo: ELTE-DH/WebArticleCurator
branch: master
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$
- provider: script
skip_cleanup: true
# Upload to PyPi with poetry (create a token and store it in travis-ci as PYPI_TOKEN environment variable)
script: make upload
on:
repo: ELTE-DH/WebArticleCurator
branch: master
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$
notifications:
email: false