File tree Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 1
1
os :
2
2
- linux
3
- # - osx
3
+ - osx
4
4
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
13
6
env :
14
7
- PATH="${PATH}:${HOME}/local/bin"
15
8
language : python
Original file line number Diff line number Diff line change
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]
You can’t perform that action at this time.
0 commit comments