forked from adafruit/ArduinoCore-samd
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
42 lines (37 loc) · 1.48 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
##############################################################################
#
# File: .travis.yml
#
# Function:
# Travis script for test-building this library.
#
# Copyright Notice:
# See LICENSE file accompanying this project.
#
# Author:
# frazar October, 2020
#
##############################################################################
language: minimal
env:
global:
- ARDUINO_CLI_VERSION=latest
before_install:
- # Download arduino-cli binary
- wget "https://downloads.arduino.cc/arduino-cli/arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz"
- tar xf "arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz"
- # Add arduino-cli binary to $PATH
- mkdir -p "$HOME/bin"
- mv arduino-cli $HOME/bin/
- export PATH="$PATH:$HOME/bin"
- arduino-cli version
install:
- # Install mcci:samd core as packaged in the github.com/mcci-catena/arduino-boards.
- # NOTE: The version downloaded in this way is different from the one being tested
- arduino-cli core install mcci:samd --additional-urls 'https://github.com/mcci-catena/arduino-boards/raw/master/BoardManagerFiles/package_mcci_index.json'
- # Replace the download mcci:samd core with the repo being tested
- ARDUINO_CORE_SAMD_VERSION="$(ls "$HOME/.arduino15/packages/mcci/hardware/samd/")"
- rm -rf "$HOME/.arduino15/packages/mcci/hardware/samd/$ARDUINO_CORE_SAMD_VERSION"
- ln -s "$TRAVIS_BUILD_DIR" "$HOME/.arduino15/packages/mcci/hardware/samd/$ARDUINO_CORE_SAMD_VERSION"
script:
- tests/ci.sh