-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy path.travis.yml
78 lines (65 loc) · 2.55 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/page/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/page/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/page/userguide/cmd_ci.html >
#
language: python
python:
- '2.7'
sudo: required
env:
- PIO_ENV=openevse
- PIO_ENV=openevse_slow
- PIO_ENV=openevse_ota
- PIO_ENV=openevse_dev
- PIO_ENV=openevse_staging
- PIO_ENV=openevse_staging_libs
# - SCRIPT=ci_arduino.sh
# BUILD_TARGET=esp8266:esp8266:huzzah:FlashSize=4M1M
cache:
directories:
- "~/.platformio"
# - "/usr/local/share/arduino"
install:
# Install Platform IO
# Use normal version
# - pip install -U platformio
# Use dev version
- pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
# - platformio platform install espressif8266 --with-package tool-mkspiffs
# - platformio platform install https://github.com/platformio/platform-espressif8266.git#feature/stage --with-package tool-mkspiffs
# Make sure our cached copy is up-to-date
# - platformio upgrade
# - platformio update
# # Install Arduino IDE
# - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16 -extension RANDR"
# - sleep 3
# - export DISPLAY=:1.0
# - ARDUINO_VERSION=1.8.4
# - wget http://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
# # Setup Arduino IDE
# - arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs
# - arduino --install-boards "esp8266:esp8266"
# - arduino --install-library "PubSubClient"
# - mkdir -p ~/Arduino/libraries
# - cd ~/Arduino/libraries
# - wget https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip -O ESPAsyncWebServer.zip
# - unzip ESPAsyncWebServer.zip
# - wget https://github.com/me-no-dev/ESPAsyncTCP/archive/master.zip -O ESPAsyncTCP.zip
# - unzip ESPAsyncTCP.zip
# - cd -
script:
- bash -e scripts/${SCRIPT:-ci_platformio.sh}