-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
80 lines (80 loc) · 2.17 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
dist: jammy
language: python
python:
- '3.8'
branches:
only:
- master
- "/^\\d+\\.\\d+\\.\\d+$/"
jobs:
include:
- name: tanguan
install:
- pip install tox
- pip install awscli
script:
- tox -e tanguan
- aws s3 cp --endpoint-url ${AWS_S3_ENDPOINT_URL} coverage.xml s3://${AWS_S3_BUCKET}/${TRAVIS_BUILD_NUMBER}/coverage-tanguan.xml
- name: bunpun
install:
- pip install tox
- pip install awscli
script:
- tox -e bunpun
- aws s3 cp --endpoint-url ${AWS_S3_ENDPOINT_URL} coverage.xml s3://${AWS_S3_BUCKET}/${TRAVIS_BUILD_NUMBER}/coverage-bunpun.xml
- name: HTS
install:
- pip install tox
- pip install awscli
script:
- tox -e HTS
- aws s3 cp --endpoint-url ${AWS_S3_ENDPOINT_URL} coverage.xml s3://${AWS_S3_BUCKET}/${TRAVIS_BUILD_NUMBER}/coverage-HTS.xml
- name: KenLM
install:
- pip install tox
- pip install awscli
script:
- tox -e KenLM
- aws s3 cp --endpoint-url ${AWS_S3_ENDPOINT_URL} coverage.xml s3://${AWS_S3_BUCKET}/${TRAVIS_BUILD_NUMBER}/coverage-KenLM.xml
- name: flake8
install:
- pip install tox
script:
- tox -e flake8
- stage: sonarcloud
name: coverage
language: java
jdk: openjdk17
addons:
sonarcloud:
organization: "ithuan"
token: ${SONAR_TOKEN}
install: skip
before_script:
- pip install awscli
- aws s3 sync --endpoint-url ${AWS_S3_ENDPOINT_URL} s3://${AWS_S3_BUCKET}/${TRAVIS_BUILD_NUMBER}/ .coverage-reports/
script:
- sonar-scanner
- stage: deploy
name: pypi
if: branch ~= /\d+\.\d+\.\d+/
script: skip
deploy:
provider: pypi
username: __token__
password: ${PYPI_PASSWORD}
on:
tags: true
- name: gh-page bunkiann
if: type == push AND branch == master
install:
- pip install tox
script:
- tox -e bunkiann
deploy:
provider: pages
skip_cleanup: true
github_token: ${GITHUB_TOKEN}
local_dir: "html"
on:
branch: master