forked from VUnit/vunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (76 loc) · 2 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
81
82
83
84
85
86
87
language: python
install: pip install tox
script: tox -e $BUILD_NAME
stages:
- test
- deploy
matrix:
include:
- &docker
env:
- BUILD_NAME=py27-acceptance-ghdl
- DOCKER_IMAGE=mcode-2
services: docker
language: minimal
install: skip
script: docker run --rm -tv $(pwd):/src -w /src vunit/dev:$DOCKER_IMAGE tox -e $BUILD_NAME
- <<: *docker
env:
- BUILD_NAME=py37-acceptance-ghdl
- DOCKER_IMAGE=llvm
- <<: *docker
env:
- BUILD_NAME=py37-vcomponents-ghdl
- DOCKER_IMAGE=mcode
- env: BUILD_NAME=py27-lint
python: '2.7'
- env: BUILD_NAME=py37-lint
dist: xenial
python: '3.7'
- env: BUILD_NAME=py27-unit
python: '2.7'
- env: BUILD_NAME=py34-unit
python: '3.4'
- env: BUILD_NAME=py35-unit
python: '3.5'
- env: BUILD_NAME=py36-unit
python: '3.6'
- env: BUILD_NAME=py37-unit
dist: xenial
python: '3.7'
- env: BUILD_NAME=py27-docs
python: '2.7'
before_script: git fetch --unshallow --tags
- env: BUILD_NAME=py36-docs
python: '3.6'
before_script: git fetch --unshallow --tags
after_success: touch .tox/py36-docs/tmp/docsbuild/.nojekyll
deploy:
provider: pages
repo: VUnit/VUnit.github.io
target_branch: master
local_dir: .tox/py36-docs/tmp/docsbuild/
# This environment variable is set to an OAuth token in travis vunit settings
github_token: $GITHUB_PAGES_TOKEN
skip_cleanup: true
on:
repo: VUnit/vunit
branch: master
# Deploy to PyPI whenever the package version has changed
# When a package version has not changed a new upload will not be triggered
- stage: deploy
python: '3.6'
if: tag IS present
script:
- git fetch --unshallow --tags
- python tools/new_release.py 'check'
deploy:
provider: pypi
distributions: sdist
skip_cleanup: true
skip_upload_docs: true
user: $PYPI_USER
password: $PYPI_PASSWORD
on:
repo: VUnit/vunit
branch: master