Skip to content

Commit

Permalink
Add packager bash scripts that should handle all build platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
pevogam committed Mar 23, 2018
1 parent 0720d5f commit 65e0067
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ addons:
- libx11-dev
- libxtst-dev

# install any dependencies
install: "pip install -r packaging/pip_requirements.txt"
# install any dependencies and build package
install:
- if [[ $INSTALL_VARIANT == "pip" ]]; then travis_retry pip install -r packaging/pip_requirements.txt; fi

before_script:
- export DISPLAY=:99.0
Expand All @@ -28,6 +29,7 @@ before_script:

# run tests
script:
- if [[ $INSTALL_VARIANT != "pip" ]]; then cd packaging && bash packager_docker.sh && cd ..; fi
- python tests/test_calibrator.py
- python tests/test_desktopcontrol.py
- python tests/test_finder.py
Expand Down
3 changes: 3 additions & 0 deletions packaging/packager_deb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exit 0
13 changes: 13 additions & 0 deletions packaging/packager_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

readonly install_variant="${INSTALL_VARIANT:-pip}"

if [ "$install_variant" == "rpm" ]; then
sudo docker run \
-v $(pwd)/..:/guibot:rw fedora:latest \
/bin/bash /guibot/packaging/packager_rpm.sh
elif [ "$install_variant" == "deb" ]; then
sudo docker run \
-v $(pwd)/..:/guibot:rw ubuntu:latest \
/bin/bash /guibot/packaging/packager_deb.sh
fi
3 changes: 3 additions & 0 deletions packaging/packager_rpm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exit 0

0 comments on commit 65e0067

Please sign in to comment.