* Reduced codesize: Switch to newlib-nano Figured out how to switch to newlib-nano in a simple way. Reduced build size by about 29k. Applied this to all STM32 builds. Please test with the STM32L072 hardware, I don't have one of those, only STM32F072 Also "upgraded" the compiler accepted language standard to gnu c++11 (from gnu++98). And finally defined that all floating point constants are to be treated as "floats" and not as double (which is the default). Reduces the number of implicit double promotions almost to the required minimum. In some places the double functions are applied to floats which also causes some unwanted time and code growth. But this is not fixed yet. * Change travis to try to deploy only on "master" repo * Fixed typo gnu++11 was not really enabled, due to copy'n'paste typo.
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
language: python
|
|
python:
|
|
- "2.7"
|
|
|
|
# Cache PlatformIO packages using Travis CI container-based infrastructure
|
|
sudo: false
|
|
cache:
|
|
directories:
|
|
- "~/.platformio"
|
|
|
|
env:
|
|
- PLATFORMIO_CI_SRC=src
|
|
|
|
install:
|
|
- pip install -U platformio
|
|
- platformio update
|
|
|
|
#
|
|
# Libraries from PlatformIO Library Registry:
|
|
#
|
|
# https://platformio.org/lib/show/4ee/
|
|
# https://platformio.org/lib/show/c23/
|
|
# - platformio lib -g install 4ee c23
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- doxygen
|
|
|
|
script:
|
|
- cp src/config.h_template src/config.h
|
|
# - platformio ci --lib="lib/Adafruit_GFX" --lib="lib/ThingSet" --project-conf=platformio.ini -e libresolar_0_10,libresolar_0_05
|
|
- platformio run -e mppt-2420-lc-v0.10 -e mppt-1210-hus-v0.2 -e mppt-1210-hus-v0.4 -e pwm-2420-lus-v0.2
|
|
- platformio test -e unit-test-native
|
|
- doxygen Doxyfile
|
|
|
|
deploy:
|
|
provider: pages
|
|
skip_cleanup: true
|
|
local_dir: html
|
|
github_token: $GH_REPO_TOKEN
|
|
on:
|
|
repo: LibreSolar/charge-controller-firmware
|
|
branch: master |