-
Notifications
You must be signed in to change notification settings - Fork 65
/
.travis.yml.disabled
30 lines (26 loc) · 973 Bytes
/
.travis.yml.disabled
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
language: c
install:
- sudo apt-get update && sudo apt-get install -y --no-install-recommends python3-minimal python3-pip python3-setuptools
- pip3 install platformio==4.2.1
script:
- VERSION=$(git rev-parse --short HEAD)
- HERE=$(readlink -f .)
- sed -i -e 's|#define SKETCH_VERSION ".*"|#define SKETCH_VERSION "'$VERSION'"|' $PWD/ESP8266WirelessPrintAsync/ESP8266WirelessPrintAsync.ino
- platformio run
- BOARD=$(echo $BD | cut -d ":" -f 3)
- |2
pushd .pio/build
for board_dir in */; do
pushd "$board_dir"
board=$(echo "$board_dir" | tr -d '/')
rename "s|firmware|ESP8266WirelessPrintAsync_${board}_${VERSION}|" firmware.*
popd
done
popd
after_success:
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash ./upload.sh .pio/build/*/*WirelessPrint*.bin
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/