Skip to content

Commit 032f37f

Browse files
committed
Alt syntax for mustafa's patch of .travis.yml
1 parent a93679e commit 032f37f

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.travis.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
---
22
language: python
33

4+
python:
5+
- 3.9.7
6+
- 3.8
7+
48
branches:
59
only:
610
- main
11+
- travis
712
- /^v\d+\.\d+\.\d+$/
813

914
before_install:
1015
- git config --local user.name "LTO Network"
1116
- git config --local user.email "[email protected]"
12-
17+
18+
install:
19+
- '[[ ! "$TRAVIS_PYTHON_VERSION" =~ "3.9" ]] || source ~/virtualenv/python3.9/bin/activate'
20+
- pip3 install .
21+
1322
before_script:
1423
- pip3 install pytest
1524

@@ -22,19 +31,6 @@ stages:
2231

2332
jobs:
2433
include:
25-
- stage: test
26-
python:
27-
- 3.8
28-
install:
29-
- pip3 install .
30-
31-
- stage: test
32-
python:
33-
- 3.9.7
34-
install:
35-
- source ~/virtualenv/python3.9/bin/activate
36-
- pip3 install .
37-
3834
- name: "Publish GitHub release"
3935
stage: deploy
4036
if: branch = main AND type = push

0 commit comments

Comments
 (0)