Skip to content

Commit e4c5934

Browse files
committed
Added OSX testing
1 parent ccd64ed commit e4c5934

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.travis.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
os:
22
- linux
3-
#- osx
3+
- osx
44
before_install:
5-
- sudo apt-get update
6-
# Cscope and ctags
7-
- sudo apt install cscope exuberant-ctags
8-
# Latest version of arduino-cli
9-
- mkdir -p ${HOME}/local/bin
10-
- curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=${HOME}/local/bin sh
11-
# Install arduino-esp32 for testing
12-
- arduino-cli core install --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json esp32:[email protected]
5+
- bash test/before_install.sh
136
env:
147
- PATH="${PATH}:${HOME}/local/bin"
158
language: python

test/before_install.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
4+
brew update
5+
brew install arduino-cli ctags cscope
6+
fi
7+
8+
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
9+
sudo apt-get update
10+
# Cscope and ctags
11+
sudo apt install cscope exuberant-ctags
12+
# Latest version of arduino-cli
13+
mkdir -p ${HOME}/local/bin
14+
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=${HOME}/local/bin sh
15+
fi
16+
17+
# Install arduino-esp32 for testing
18+
arduino-cli core install --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json esp32:[email protected]

0 commit comments

Comments
 (0)