-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
60 lines (55 loc) · 1.54 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
os: linux
dist: jammy
language: python
python:
- "3.12"
- "3.11"
- "3.10"
- "3.9.14"
- "3.8"
# https://github.com/travis-ci/travis-ci/issues/1147#issuecomment-441393807
if: type != push OR branch = master OR branch =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/
before_install: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal
source "$HOME/.cargo/env"
pip -q install --upgrade pip 'setuptools==65.6.2' 'poetry>=1.2.0'
install: pip -q install --upgrade "tox < 4" tox-travis
script: tox
cache:
cargo: true
pip: true
directories:
- $TRAVIS_BUILD_DIR/.tox/
- $HOME/.cache/pypoetry
jobs:
include:
- stage: smoke test
services:
- docker
script:
- pip -q install poetry
- poetry build
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
- ci/run_tests.sh
- stage: release
if: branch = master
script: skip
before_deploy:
- pip -q install poetry
- nvm install lts/*
- npm i -g
semantic-release
@semantic-release/exec
@semantic-release/git
@semantic-release/changelog
@google/semantic-release-replace-plugin
# Note publishing this way requires the PyPI credentials to be
# present in the environment. Travis doesn't currently support
# providing environment variables to deploy providers through
# the build config (i.e. in this file). So, they must be
# provided through the build settings instead.
deploy:
- provider: script
script: semantic-release
on:
branch: master