forked from EnviroDIY/ModularSensors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
82 lines (79 loc) · 3.83 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
79
80
81
82
before_install:
- git config --global user.email "[email protected]"
- git config --global user.name "SRGDamia1"
sudo: false
git:
depth: 1
sparse_checkout: travis/travis_sparse_checkout
cache:
pip: true
directories:
- "~/.platformio"
language: python
python:
- "2.7"
install:
# Remove the cloned repo to emulate a user library installation
- git rm library.json
# - git rm library.properties
# - git rm -r pioScripts
# - git rm -r src
# Install PlatformIO (this should be cached!)
- pip install -U platformio
- pio upgrade
# Uninstall any old version of the current library from the Travis cache
- if pio lib -g uninstall EnviroDIY_ModularSensors; then
echo "Uninstalled cached version of ModularSensors";
fi
# Install this library from the branch we're working on
# echo "Installing ModularSensors from https://github.com/$TRAVIS_REPO_SLUG.git#$TRAVIS_BRANCH";
# echo "Installing ModularSensors from https://github.com/$TRAVIS_PULL_REQUEST_SLUG.git#$TRAVIS_PULL_REQUEST_BRANCH";
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo "Installing ModularSensors from https://github.com/$TRAVIS_REPO_SLUG.git#$TRAVIS_COMMIT";
else
echo "Installing ModularSensors from https://github.com/$TRAVIS_PULL_REQUEST_SLUG.git#$TRAVIS_PULL_REQUEST_SHA";
fi
# pio lib -g install https://github.com/$TRAVIS_REPO_SLUG.git#$BRANCH;
# pio lib -g install https://github.com/$TRAVIS_PULL_REQUEST_SLUG.git#$TRAVIS_PULL_REQUEST_BRANCH;
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
pio lib -g install https://github.com/$TRAVIS_REPO_SLUG.git#$TRAVIS_COMMIT;
else
pio lib -g install https://github.com/$TRAVIS_PULL_REQUEST_SLUG.git#$TRAVIS_PULL_REQUEST_SHA;
fi
# Install serial libraries (these should be ignored by SAMD boards)
- pio lib -g install https://github.com/PaulStoffregen/AltSoftSerial.git
- pio lib -g install https://github.com/EnviroDIY/SoftwareSerial_ExtInts.git
- pio lib -g install https://github.com/SRGDamia1/NeoSWSerial.git
- pio update
script:
- platformio ci --project-conf="travis/platformio.ini"
matrix:
include:
- language: node_js
install: npm install -g jsonlint
script: jsonlint -q library.json
after_success: |
echo "TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST"
if [[ ($TRAVIS_BRANCH == master) &&
($TRAVIS_PULL_REQUEST == false) ]] ; then
curl -LO --retry 3 https://raw.github.com/mernst/plume-lib/master/bin/trigger-travis.sh
sh trigger-travis.sh EnviroDIY Libraries $TRAVIS_ACCESS_TOKEN
fi
- env:
- PLATFORMIO_CI_SRC=examples/single_sensor/ PLATFORMIO_DEFAULT_ENVS="mayfly, adafruit_feather_m0, autonomo, mega"
- env:
- PLATFORMIO_CI_SRC=examples/simple_logging/ PLATFORMIO_DEFAULT_ENVS="mayfly, adafruit_feather_m0, autonomo, mega"
- env:
- PLATFORMIO_CI_SRC=examples/DRWI_CitSci/ PLATFORMIO_DEFAULT_ENVS="mayfly, adafruit_feather_m0, autonomo, mega"
- env:
- PLATFORMIO_CI_SRC=examples/DRWI_NoCellular/ PLATFORMIO_DEFAULT_ENVS="mayfly, adafruit_feather_m0, autonomo, mega"
- env:
- PLATFORMIO_CI_SRC=examples/double_logger/ PLATFORMIO_DEFAULT_ENVS="mayfly, adafruit_feather_m0, autonomo, mega"
- env:
- PLATFORMIO_CI_SRC=examples/baro_rho_correction/ PLATFORMIO_DEFAULT_ENVS="mayfly, adafruit_feather_m0, autonomo, mega"
- env:
- PLATFORMIO_CI_SRC=examples/data_saving/ PLATFORMIO_DEFAULT_ENVS="mayfly, adafruit_feather_m0, autonomo, mega"
- env:
- PLATFORMIO_CI_SRC=examples/logging_to_ThingSpeak/ PLATFORMIO_DEFAULT_ENVS="mayfly, adafruit_feather_m0, autonomo, mega"
- env:
- PLATFORMIO_CI_SRC=examples/menu_a_la_carte/