Skip to content

Commit 90a7272

Browse files
committed
Test package building in Travis CI
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
1 parent 91ca59b commit 90a7272

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
language: minimal
22

3+
before_install:
4+
- make env
5+
- source env/conda/bin/activate sphinx-verilog-domain
6+
37
stages:
48
- name:
9+
- Build
510
- Deploy
611

712
jobs:
13+
- stage: Build
14+
name: "Build"
15+
script:
16+
- make build
17+
818
- stage: Deploy
919
name: "PyPI"
1020
before_deploy:

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,18 @@ REQUIREMENTS_FILE := requirements.txt
1818
ENVIRONMENT_FILE := environment.yml
1919

2020
include third_party/make-env/conda.mk
21+
22+
# Build the package locally
23+
24+
build: $(CONDA_ENV_PYTHON)
25+
$(IN_CONDA_ENV) python setup.py sdist bdist_wheel && twine check dist/*
26+
27+
build-clean:
28+
rm -rf env/downloads/conda-pkgs
29+
rm -rf build dist *.egg-info
30+
find -name *.pyc -delete
31+
find -name __pycache__ -delete
32+
33+
.PHONY: build build-clean
34+
35+
clean:: build-clean

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
sphinx
22
lark-parser
3+
4+
# To validate package building
5+
twine

0 commit comments

Comments
 (0)