Skip to content

Commit

Permalink
Fix travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
jabby committed Apr 27, 2020
1 parent fc1e248 commit dd5d9cb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ cache:
- "$HOME/.sonar/cache/respirator-production-HW2-dev"
- "$HOME/.sonar/cache/respirator-qualification-HW1-dev"
- "$HOME/.sonar/cache/respirator-qualification-HW2-dev"

branches:
only:
- master

script:
- |
if [[ $TRAVIS_PULL_REQUEST_SLUG == "" || $TRAVIS_PULL_REQUEST_SLUG == "makers-for-life/makair" ]]; then
bash sonarcloud/build-and-analyse-all.sh
fi
- bash sonarcloud/build-and-analyse-all.sh
4 changes: 2 additions & 2 deletions sonarcloud/build-and-analyse-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ for softwareIndex in "${!softwareNames[@]}"
do
for hardwareIndex in "${!hardwareVersionNames[@]}"
do
export SOFTWARE_FULLNAME="respirator-${softwareNames[$softwareIndex]}-${hardwareVersionNames[$hardwareIndex]}-dev"
export SOFTWARE_FULLNAME="respirator-${softwareNames[$softwareIndex]}-${hardwareVersionNames[$hardwareIndex]}"
export MODE=${softwareModes[$softwareIndex]}
export HARDWARE_VERSION=${hardwareVersions[$hardwareIndex]}

path="build/${SOFTWARE_FULLNAME}/bo"

mkdir -p path
mkdir -p "$path"

arduino-cli cache clean
build-wrapper-linux-x86-64 --out-dir "$path" bash sonarcloud/build.sh > /dev/null
Expand Down
16 changes: 8 additions & 8 deletions src/software/firmware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ Low-level configuration options can be found in [includes/parameters.h](includes

The following version of software are build and analysed.

| Software Mode | Hardware | Version | Valve version | Link |
| ---------------- | -------- | ------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| integration-test | HW1 | dev | pinch valve | [respirator-integration-test-HW1-dev](https://sonarcloud.io/organizations/makers-for-life/projects/respirator-integration-test-HW1-dev) |
| integration-test | HW2 | dev | pinch valve | [respirator-integration-test-HW2-dev](https://sonarcloud.io/organizations/makers-for-life/projects/respirator-integration-test-HW2-dev) |
| production | HW1 | dev | pinch valve | [respirator-production-HW1-dev](https://sonarcloud.io/organizations/makers-for-life/projects/respirator-production-HW1-dev) |
| production | HW2 | dev | pinch valve | [respirator-production-HW2-dev](https://sonarcloud.io/organizations/makers-for-life/projects/respirator-production-HW2-dev) |
| qualification | HW1 | dev | pinch valve | [respirator-qualification-HW1-dev](https://sonarcloud.io/organizations/makers-for-life/projects/respirator-qualification-HW1-dev) |
| qualification | HW2 | dev | pinch valve | [respirator-qualification-HW2-dev](https://sonarcloud.io/organizations/makers-for-life/projects/respirator-qualification-HW2-dev) |
| Software Mode | Hardware | Valve version | Link |
| ---------------- | -------- | ------------- | ----------------------------------------------------------------------------------------------------- |
| integration-test | HW1 | pinch valve | [respirator-integration-test-HW1](https://sonarcloud.io/dashboard?id=respirator-integration-test-HW1) |
| integration-test | HW2 | pinch valve | [respirator-integration-test-HW2](https://sonarcloud.io/dashboard?id=respirator-integration-test-HW2) |
| production | HW1 | pinch valve | [respirator-production-HW1](https://sonarcloud.io/dashboard?id=respirator-production-HW1) |
| production | HW2 | pinch valve | [respirator-production-HW2](https://sonarcloud.io/dashboard?id=respirator-production-HW2) |
| qualification | HW1 | pinch valve | [respirator-qualification-HW1](https://sonarcloud.io/dashboard?id=respirator-qualification-HW1) |
| qualification | HW2 | pinch valve | [respirator-qualification-HW2](https://sonarcloud.io/dashboard?id=respirator-qualification-HW2) |

0 comments on commit dd5d9cb

Please sign in to comment.