blob: 9a921622d58fac27a5867549bee9f2d0baafa5cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
language: c
before_install:
- PROJECT_PATH=$(pwd)
- PEBBLE_SDK=PebbleSDK-2.2
- echo 'Installing Pebble SDK Dependencies...'
- echo 'SDK ${PEBBLE_SDK}'
- cd ~
# Get the Pebble SDK and toolchain
- wget http://dump.victorhaggqvist.com/${PEBBLE_SDK}.tar.gz -O PebbleSDK.tar.gz #cuz need to login to download from pebble..
- wget http://assets.getpebble.com.s3-website-us-east-1.amazonaws.com/sdk/arm-cs-tools-ubuntu-universal.tar.gz
# Build the Pebble directory
- mkdir ~/pebble-dev
- cd ~/pebble-dev
# Extract the SDK
- tar -zxf ~/PebbleSDK.tar.gz
- cd ~/pebble-dev/${PEBBLE_SDK}
# Extract the toolchain
- tar -zxf ~/arm-cs-tools-ubuntu-universal.tar.gz
- export PATH=~/pebble-dev/${PEBBLE_SDK}/bin:$PATH
# python stuff
- sudo apt-get install python-pip python2.7-dev
- sudo pip install virtualenv
- virtualenv --no-site-packages .env
- source .env/bin/activate
- pip install -r ~/pebble-dev/PebbleSDK-2.2/requirements.txt
- deactivate
script:
- echo "Building Pebble project..."
- cd ${PROJECT_PATH}
- pebble build
|