Skip to content

Commit

Permalink
Test package building in Travis CI
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
  • Loading branch information
rw1nkler committed Sep 9, 2020
1 parent a43cebf commit 19ff84f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
language: minimal

before_install:
- make env
- source env/conda/bin/activate sphinx-verilog-domain

stages:
- name:
- Build
- Deploy

jobs:
- stage: Build
name: "Build"
script:
- make build

- stage: Deploy
name: "PyPI"
before_deploy:
Expand Down
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,18 @@ REQUIREMENTS_FILE := requirements.txt
ENVIRONMENT_FILE := environment.yml

include third_party/make-env/conda.mk

# Build the package locally

build: $(CONDA_ENV_PYTHON)
$(IN_CONDA_ENV) python setup.py sdist bdist_wheel && twine check dist/*

build-clean:
rm -rf env/downloads/conda-pkgs
rm -rf build dist *.egg-info
find -name *.pyc -delete
find -name __pycache__ -delete

.PHONY: build build-clean

clean:: build-clean
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
sphinx
lark-parser

# To validate package building
twine

0 comments on commit 19ff84f

Please sign in to comment.