-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (49 loc) · 1.82 KB
/
.travis.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
43
44
45
46
47
48
49
dist: trusty
language: cpp
env:
global:
- ARDUINO_VERSION=1.8.8
node_js:
- "node"
- "stable"
stages:
- deploy
- ':ship it to GitHub Pages'
cache:
directories:
- node_modules
before_install:
- wget https://downloads.arduino.cc/arduino-${ARDUINO_VERSION}-linux64.tar.xz
- tar xf arduino-${ARDUINO_VERSION}-linux64.tar.xz
- sudo mv arduino-${ARDUINO_VERSION} /usr/local/share/arduino
- sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
install:
- npm install -g polymer-cli
- mkdir -p ~/Arduino/libraries
- ln -s $PWD ~/Arduino/libraries/.
- git clone https://github.com/hunsalz/esp8266utils.git ~/Arduino/libraries/esp8266utils
- arduino --install-library "log4Esp:1.0.0"
- arduino --install-library "ArduinoJson:5.13.1"
- git clone https://github.com/me-no-dev/ESPAsyncTCP.git ~/Arduino/libraries/ESPAsyncTCP
- git clone https://github.com/me-no-dev/ESPAsyncWebServer.git ~/Arduino/libraries/ESPAsyncWebServer
- arduino --install-library "FastLED:3.1.6"
- arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs
- arduino --install-boards esp8266:esp8266
- arduino --pref "compiler.warning_level=all" --save-prefs
script:
- source $TRAVIS_BUILD_DIR/travis/build.sh
- cd pixel-art-app
- npm install
- sed -i 's|service-worker.js|pixel-art/service-worker.js|g' index.html # expand path to match GH-PAGES root dir
- sed -i 's|src="node_modules|src="pixel-art/node_modules|g' index.html # expand path to match GH-PAGES root dir
- sed -i 's|src="src|src="pixel-art/src|g' index.html # expand path to match GH-PAGES root dir
- polymer build
deploy:
provider: pages
skip-cleanup: true
github-token: $GH_PAGES_TOKEN
keep-history: true
local-dir: pixel-art-app/build/public
verbose: true
on:
branch: master