Skip to content

Commit

Permalink
Merge branch 'feature/generate-schematic-pdfs-in-build' into 'master'
Browse files Browse the repository at this point in the history
Feature/generate schematic pdfs in build

/tag v0.0.5 "Added the ability to generate schematic PDFs in the gitlab and travis-ci builds."

See merge request dowster/e28-cluster!2
  • Loading branch information
dowster committed Mar 10, 2020
2 parents 047f1ab + e756b56 commit cdd8a2b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
18 changes: 14 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
# Currently using IDF v4.0 supplied from Espressif.
image: espressif/idf:release-v4.0


# Since I have at least one submodule in this project I want to make sure it's cloned.
variables:
GIT_SUBMODULE_STRATEGY: recursive

build:
build-code:
# Currently using IDF v4.0 supplied from Espressif.
image: espressif/idf:release-v4.0
stage: build
script:
- cd code
- idf.py build
- tar -zcf ../e28-cluster-${CI_COMMIT_REF_SLUG}-${CI_CONCURRENT_PROJECT_ID}.tar.gz build
- tar -zcf ../e28-cluster-${CI_COMMIT_REF_SLUG}-${CI_PIPELINE_ID}.tar.gz build
artifacts:
paths:
- e28-cluster-*.tar.gz
- code/build/partition_table/partition-table.bin
- code/build/bootloader/bootloader.bin
- code/build/e28-cluster.bin

build-schematics:
stage: build
image: registry.gitlab.com/dowster/eeshow:latest
script:
- cd pcb-design
- eeplot -o ../pcb-design-${CI_COMMIT_REF_SLUG}-${CI_PIPELINE_ID}.pdf schematic.pro
artifacts:
paths:
- pcb-design-${CI_COMMIT_REF_SLUG}-${CI_PIPELINE_ID}.pdf
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ services:

script:
- docker run --rm -v $PWD/code:/project -w /project espressif/idf:release-v4.0 idf.py build

- docker run --rm -v $PWD/pcb-design:/project -w /project registry.gitlab.com/dowster/eeshow:latest eeplot -o pcb-design-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}.pdf schematic.pro
before_deploy:
- tar -zcf e28-cluster-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}.tar.gz code/build
- tar -zcf e28-cluster-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}.tar.gz code/build pcb-design/pcb-design-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}.pdf

deploy:
provider: releases
Expand Down

0 comments on commit cdd8a2b

Please sign in to comment.