-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
55 lines (46 loc) · 1.13 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
dist: focal
services:
- xvfb
addons:
firefox: latest
language: python
python:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
if: tag IS blank # do not build tags
before_install:
- wget -N https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz -P ~/
- tar -xzf ~/geckodriver-v0.30.0-linux64.tar.gz -C ~/
- rm ~/geckodriver-v0.30.0-linux64.tar.gz
- sudo mv -f ~/geckodriver /usr/local/share
- sudo chmod +x /usr/local/share/geckodriver
- sudo ln -s /usr/local/share/geckodriver /usr/local/bin/geckodriver
install:
- pip install -e '.[dev]'
script:
- firefox -headless &
- make test
- make format args='--check'
jobs:
include:
- stage: publish
python: '3.11'
services: []
addons:
firefox: 'skip'
apt: []
install:
- nvm install 18
- npm install [email protected] [email protected]
script:
- npx semantic-release
deploy:
provider: pypi
skip_cleanup: true
username: $PYPI_USERNAME
password: $PYPI_PASSWORD
on:
branch: master