Purge travis stuff
parent
81db7b2b89
commit
3bbd52c67c
|
@ -35,7 +35,6 @@ node_modules
|
||||||
|
|
||||||
# Various env vars.
|
# Various env vars.
|
||||||
.env
|
.env
|
||||||
travis_env
|
|
||||||
scripts/mqtt.py
|
scripts/mqtt.py
|
||||||
|
|
||||||
# Fwup keys aren't stored here, but just in case.
|
# Fwup keys aren't stored here, but just in case.
|
||||||
|
|
54
.travis.yml
54
.travis.yml
|
@ -1,54 +0,0 @@
|
||||||
language: erlang
|
|
||||||
otp_release:
|
|
||||||
- 20.0
|
|
||||||
sudo: required
|
|
||||||
dist: trusty
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- llvm-toolchain-precise
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- squashfs-tools
|
|
||||||
- libmnl-dev
|
|
||||||
- g++
|
|
||||||
- libssl-dev
|
|
||||||
- libncurses5-dev
|
|
||||||
- bc
|
|
||||||
- m4
|
|
||||||
- make
|
|
||||||
- unzip
|
|
||||||
- cmake
|
|
||||||
- python
|
|
||||||
- libudev-dev
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- ELIXIR_VERSION=1.5.0 ERLANG_VERSION=20.0 FWUP_VERSION=0.17.0 MIX_ENV=test
|
|
||||||
before_install:
|
|
||||||
- openssl aes-256-cbc -K $encrypted_a344ae763d55_key -iv $encrypted_a344ae763d55_iv
|
|
||||||
-in travis_env.enc -out travis_env -d
|
|
||||||
- wget https://github.com/elixir-lang/elixir/releases/download/v$ELIXIR_VERSION/Precompiled.zip
|
|
||||||
- wget https://github.com/fhunleth/fwup/releases/download/v0.17.0/fwup_0.17.0_amd64.deb
|
|
||||||
- sudo dpkg -i fwup_0.17.0_amd64.deb
|
|
||||||
- unzip -d elixir Precompiled.zip
|
|
||||||
before_script:
|
|
||||||
- export PATH=`pwd`/elixir/bin:$PATH
|
|
||||||
script:
|
|
||||||
- sudo apt-get install -qq linux-headers-`uname -r`
|
|
||||||
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
|
|
||||||
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
|
|
||||||
- mix local.hex --force
|
|
||||||
- mix local.rebar --force
|
|
||||||
- mix archive.install https://github.com/nerves-project/archives/raw/master/nerves_bootstrap.ez --force
|
|
||||||
- MIX_ENV=test mix deps.get
|
|
||||||
- mix credo --strict --ignore Credo.Check.Readability.MaxLineLength
|
|
||||||
- mix coveralls.travis --seed 0 --exclude farmbot_firmware
|
|
||||||
after_script:
|
|
||||||
- export MIX_ENV=dev
|
|
||||||
- export MIX_TARGET=rpi3
|
|
||||||
- mix deps.get
|
|
||||||
- mix firmware
|
|
||||||
- mix firmware.slack --channels C58DCU4A3 $TRAVIS_COMMIT_MESSAGE; echo "done."
|
|
||||||
notifications:
|
|
||||||
slack:
|
|
||||||
secure: Y2jTU5Bs/TU0SQn4lMMdVohU57KfyBj2SEr9d+pNWXm1wcIecUrKrEo4fhNPrzsE7nWtrTQXroSWk1N7cioa9MO2WFbnuNEXJ3jm8uhFueCO9VGyGIxuTP7eISAduAVdjfWfVtYOf87vmiSe7yRn3XJtbGnCRB6EqyxKbnZzJJs=
|
|
|
@ -1,9 +1,6 @@
|
||||||
use Mix.Config
|
use Mix.Config
|
||||||
|
|
||||||
cond do
|
cond do
|
||||||
System.get_env("TRAVIS_COMMIT_MESSAGE") ->
|
|
||||||
Mix.shell.info [:green, "Using travis config."]
|
|
||||||
import_config("auth_secret_ci.exs")
|
|
||||||
System.get_env("CIRCLECI") ->
|
System.get_env("CIRCLECI") ->
|
||||||
Mix.shell.info [:green, "Using circle ci config."]
|
Mix.shell.info [:green, "Using circle ci config."]
|
||||||
import_config("auth_secret_ci.exs")
|
import_config("auth_secret_ci.exs")
|
||||||
|
|
|
@ -76,14 +76,7 @@ else
|
||||||
[]
|
[]
|
||||||
end
|
end
|
||||||
|
|
||||||
travis_file = "travis_env"
|
config :nerves_firmware_ssh, authorized_keys: local_key
|
||||||
travis_keys = if File.exists?(travis_file) do
|
|
||||||
File.read!(travis_file) |> String.split(",")
|
|
||||||
else
|
|
||||||
[]
|
|
||||||
end
|
|
||||||
|
|
||||||
config :nerves_firmware_ssh, authorized_keys: local_key ++ travis_keys
|
|
||||||
|
|
||||||
config :bootloader,
|
config :bootloader,
|
||||||
init: [:nerves_runtime, :nerves_init_gadget],
|
init: [:nerves_runtime, :nerves_init_gadget],
|
||||||
|
|
2
mix.exs
2
mix.exs
|
@ -48,7 +48,7 @@ defmodule Farmbot.Mixfile do
|
||||||
"coveralls.detail": :test,
|
"coveralls.detail": :test,
|
||||||
"coveralls.post": :test,
|
"coveralls.post": :test,
|
||||||
"coveralls.html": :test,
|
"coveralls.html": :test,
|
||||||
"coveralls.travis": :test
|
"coveralls.circle": :test
|
||||||
],
|
],
|
||||||
source_url: "https://github.com/Farmbot/farmbot_os",
|
source_url: "https://github.com/Farmbot/farmbot_os",
|
||||||
homepage_url: "http://farmbot.io",
|
homepage_url: "http://farmbot.io",
|
||||||
|
|
BIN
travis_env.enc
BIN
travis_env.enc
Binary file not shown.
Loading…
Reference in New Issue