aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml3
-rw-r--r--build.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 8c83cac..292b219 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,6 @@
language: c
before_install:
+ - PROJECT_PATH=~/victorhaggqvist/pebble-battery-monitor
- PEBBLE_SDK=PebbleSDK-2.2
- echo 'Installing Pebble SDK Dependencies...'
- echo 'SDK ${PEBBLE_SDK}'
@@ -21,5 +22,5 @@ before_install:
- tar -zxf ~/arm-cs-tools-ubuntu-universal.tar.gz
- export PATH=~/pebble-dev/PebbleSDK-${PEBBLE_SDK}/bin:$PATH
-script: "./build.sh"
+script: '${PROJECT_PATH}/build.sh'
diff --git a/build.sh b/build.sh
index 4b19533..ee3e0b6 100644
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,5 @@
echo "Building Pebble project..."
-cd ~/victorhaggqvist/pebble-battery-monitor
+cd ${PROJECT_PATH}
pebble build