forked from nerves-project/nerves_examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (46 loc) · 1.42 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
language: bash
sudo: required
dist: trusty
os:
- linux
- osx
# Install dependencies
addons:
apt:
packages:
- squashfs-tools
env:
global:
- ELIXIR_VERSION=1.3.1 ERLANG_VERSION=19.0
matrix:
- NERVES_TARGET=rpi
- NERVES_TARGET=rpi2
- NERVES_TARGET=rpi3
- NERVES_TARGET=bbb
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
wget https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_$ERLANG_VERSION-1~ubuntu~trusty_amd64.deb;
sudo dpkg -i esl-erlang_$ERLANG_VERSION-1~ubuntu~trusty_amd64.deb;
wget https://github.com/fhunleth/fwup/releases/download/v0.8.0/fwup_0.8.0_amd64.deb;
sudo dpkg -i fwup_0.8.0_amd64.deb;
else
brew update;
brew install homebrew/versions/erlang-r19;
brew install fwup;
brew install squashfs;
brew install coreutils;
fi
- wget https://github.com/elixir-lang/elixir/releases/download/v$ELIXIR_VERSION/Precompiled.zip
- unzip -d elixir Precompiled.zip
before_script:
- export PATH=`pwd`/elixir/bin:$PATH
script:
- mix local.hex --force
- mix local.rebar --force
- mix archive.install https://github.com/nerves-project/archives/raw/master/nerves_bootstrap.ez --force
- cd blinky
- mix do deps.get, firmware --verbosity=verbose
- cd ../hello_network
- mix do deps.get, firmware --verbosity=verbose
- cd ../hello_wifi
- mix do deps.get, firmware --verbosity=verbose