Raname libdeps to lib
This commit is contained in:
parent
7a5a218c85
commit
ae981346e1
678 changed files with 496329 additions and 0 deletions
1532
lib/AceButton/tests/AceButtonTest/AceButtonTest.ino
Normal file
1532
lib/AceButton/tests/AceButtonTest/AceButtonTest.ino
Normal file
File diff suppressed because it is too large
Load diff
82
lib/AceButton/tests/Jenkinsfile
vendored
Normal file
82
lib/AceButton/tests/Jenkinsfile
vendored
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
// See https://github.com/bxparks/AUniter/tree/develop/jenkins for
|
||||
// a description of AUniter integration with Jenkins.
|
||||
//
|
||||
// The following variables are used:
|
||||
//
|
||||
// * AUNITER_ARDUINO_BINARY - defined in the Jenkins system configuration
|
||||
// * WORKSPACE - automatically filled in by Jenkins
|
||||
// * BOARDS - defined in the "This project is parameterized" section of the
|
||||
// Jenkins Pipeline configuration
|
||||
// * BADGE_BUCKET - defined in "This project is parameterized" section.
|
||||
//
|
||||
pipeline {
|
||||
agent { label 'master' }
|
||||
stages {
|
||||
stage('Setup') {
|
||||
steps {
|
||||
dir('AUniter') {
|
||||
git url: 'https://github.com/bxparks/AUniter',
|
||||
branch: 'develop'
|
||||
}
|
||||
dir('libraries/AUnit') {
|
||||
git url: 'https://github.com/bxparks/AUnit',
|
||||
branch: 'develop'
|
||||
}
|
||||
dir('libraries/CapacitiveSensor') {
|
||||
git url:
|
||||
'https://github.com/PaulStoffregen/CapacitiveSensor',
|
||||
branch: 'master'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Verify Examples') {
|
||||
steps {
|
||||
sh "AUniter/tools/auniter.sh \
|
||||
--config libraries/AceButton/tests/auniter.ini \
|
||||
verify \
|
||||
--sketchbook $WORKSPACE \
|
||||
$BOARDS \
|
||||
libraries/AceButton/examples/*"
|
||||
}
|
||||
}
|
||||
stage('Verify Tests') {
|
||||
steps {
|
||||
sh "AUniter/tools/auniter.sh \
|
||||
--config libraries/AceButton/tests/auniter.ini \
|
||||
verify \
|
||||
--sketchbook $WORKSPACE \
|
||||
$BOARDS \
|
||||
libraries/AceButton/tests/AceButtonTest"
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh "AUniter/tools/auniter.sh \
|
||||
--config libraries/AceButton/tests/auniter.ini \
|
||||
test \
|
||||
--skip_missing_port \
|
||||
--sketchbook $WORKSPACE \
|
||||
$BOARDS \
|
||||
libraries/AceButton/tests/AceButtonTest"
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
failure {
|
||||
script {
|
||||
if (env.BADGE_BUCKET?.trim()) {
|
||||
sh "AUniter/BadgeService/set-badge-status.sh \
|
||||
$BADGE_BUCKET AceButton FAILED"
|
||||
}
|
||||
}
|
||||
}
|
||||
success {
|
||||
script {
|
||||
if (env.BADGE_BUCKET?.trim()) {
|
||||
sh "AUniter/BadgeService/set-badge-status.sh \
|
||||
$BADGE_BUCKET AceButton PASSED"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
16
lib/AceButton/tests/README.md
Normal file
16
lib/AceButton/tests/README.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# AceButtonTest
|
||||
|
||||
These unit tests depend on
|
||||
[AUnit](https://github.com/bxparks/AUnit), which is a derivative of
|
||||
[ArduinoUnit](https://github.com/mmurdoch/arduinounit). As explained
|
||||
in [issue #70](https://github.com/mmurdoch/arduinounit/issues/70),
|
||||
the original ArduinoUnit consumes too much flash memory. The `AceButtonTest.ino`
|
||||
sketch generates 53kB of flash with ArduinoUnit, which no longer fits
|
||||
inside the 32kB space of an Arduino Nano (ATmega328P). AUnit
|
||||
decreases the flash size for `AceButtonTest` by 66%, consuming only
|
||||
18kB.
|
||||
|
||||
I tried splitting the tests into 6 smaller sketches, which worked for a while.
|
||||
But when I started testing the library on multiple platforms (e.g. Arduino,
|
||||
Teensy, ESP8266), it became too cumbersome to repeatedly run 6 sketches across
|
||||
these platforms.
|
||||
25
lib/AceButton/tests/auniter.ini
Normal file
25
lib/AceButton/tests/auniter.ini
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# Board aliases
|
||||
[boards]
|
||||
uno = arduino:avr:uno
|
||||
nano = arduino:avr:nano:cpu=atmega328old
|
||||
promicro16 = SparkFun:avr:promicro:cpu=16MHzatmega32U4
|
||||
nodemcuv2 = esp8266:esp8266:nodemcuv2:CpuFrequency=80,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=921600
|
||||
esp32 = esp32:esp32:esp32:PartitionScheme=default,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none
|
||||
|
||||
[env:uno]
|
||||
board = uno
|
||||
|
||||
[env:nano]
|
||||
board = nano
|
||||
|
||||
[env:micro]
|
||||
board = promicro16
|
||||
locking = false
|
||||
|
||||
[env:esp8266]
|
||||
board = nodemcuv2
|
||||
exclude = CapacitiveButton
|
||||
|
||||
[env:esp32]
|
||||
board = esp32
|
||||
exclude = CapacitiveButton
|
||||
Loading…
Add table
Add a link
Reference in a new issue