forked from keithharp/MinimalAnalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
42 lines (38 loc) · 1.48 KB
/
.gitlab-ci.yml
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
38
39
40
41
42
image: node:latest
# Run before each script
before_script:
- export PEBBLE_SDK=pebble-sdk-4.5-linux64
- export PEBBLE_PATH=daktak/MinimalAnalog
- export HOME=/builds
- apt-get -qq update
- apt-get -qq install -y python2.7 python2.7-dev python-virtualenv python-pip libssl-dev libffi-dev
- npm install npm@3 -g
- mkdir -p ~/pebble-dev
- mkdir -p ~/.pebble-sdk
- touch ~/.pebble-sdk/NO_TRACKING
- if [ ! -d $HOME/pebble-dev/${PEBBLE_SDK} ]; then
- wget https://developer.rebble.io/s3.amazonaws.com/assets.getpebble.com/pebble-tool/${PEBBLE_SDK}.tar.bz2
- tar -jxf ${PEBBLE_SDK}.tar.bz2 -C ~/pebble-dev/
- cd ~/pebble-dev/${PEBBLE_SDK}
- sed -i '286s/.*/ return requests.get("{}{}".format(self.DOWNLOAD_SERVER, path), *args, verify=False)/' pebble-tool/pebble_tool/sdk/manager.py
- virtualenv --no-site-packages .env
- source .env/bin/activate
- sed -i 's/https:\/\/s3-us-west-2.amazonaws.com\/pebble-sdk-homebrew\/pypkjs-1.0.6.tar.gz/https:\/\/github.com\/ltpitt\/vagrant-pebble-sdk\/blob\/master\/pypkjs-1.0.6.tar.gz?raw=true/g' requirements.txt
- pip install -r requirements.txt
- deactivate
- fi
- cd $HOME/${PEBBLE_PATH}
- ~/pebble-dev/${PEBBLE_SDK}/bin/pebble sdk install https://github.com/aveao/PebbleArchive/raw/master/SDKCores/sdk-core-4.3.tar.bz2
cache:
paths:
- /builds/pebble-dev
- /builds/.cache/pip
stages:
- build
build:
stage: build
script:
- make travis_build
artifacts:
paths:
- /builds/daktak/MinimalAnalog/build