Skip to content

Commit 1349e3e

Browse files
deploy using travis
1 parent 7412988 commit 1349e3e

File tree

5 files changed

+41
-11
lines changed

5 files changed

+41
-11
lines changed

.travis.yml

+30-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cache:
2323
- $HOME/.nerves/cache/buildroot
2424

2525
env:
26-
- ELIXIR_VERSION=1.2.4 NERVES_SYSTEM_CACHE=none NERVES_SYSTEM_COMPILER=local
26+
- ELIXIR_VERSION=1.2.4 NERVES_SYSTEM_CACHE=none NERVES_SYSTEM_COMPILER=local CI_SYSTEM_NAME=nerves_system_rpi
2727

2828
before_install:
2929
- wget https://github.com/elixir-lang/elixir/releases/download/v$ELIXIR_VERSION/Precompiled.zip
@@ -39,6 +39,34 @@ script:
3939
- mix deps.get
4040
- mix compile
4141

42+
# Deploy the build products
43+
before_deploy:
44+
- mix compress.nerves_system
45+
- deps/nerves_system_br/scripts/ci-deploy.sh
46+
deploy:
47+
# Deploy tagged releases to GitHub
48+
- provider: releases
49+
api_key: $GITHUB_API_KEY
50+
file:
51+
- "artifacts/$CI_SYSTEM_NAME-$TRAVIS_TAG.tar.gz"
52+
- "artifacts/$CI_SYSTEM_NAME-$TRAVIS_TAG.fw"
53+
skip_cleanup: true
54+
on:
55+
repo: nerves-project/nerves_system_rpi
56+
tags: true
57+
# Copy all build products to S3
58+
- provider: s3
59+
access_key_id: $ARTIFACTS_KEY
60+
secret_access_key: $ARTIFACTS_SECRET
61+
bucket: $ARTIFACTS_BUCKET
62+
skip_cleanup: true
63+
local_dir: artifacts
64+
upload-dir: nerves_system_rpi
65+
storage_class: "REDUCED_REDUNDANCY" # See https://github.com/travis-ci/dpl/issues/291
66+
on:
67+
repo: nerves-project/nerves_system_rpi
68+
all_branches: true
69+
4270
# Display build log on failure
4371
after_failure:
44-
- tail -n 1000 ./ci/build.log
72+
- tail -n 1000 build.log

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.0
1+
0.4.1

mix.exs

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ defmodule NervesSystemRpi.Mixfile do
2020
end
2121

2222
defp deps do
23-
[{:nerves_system, github: "nerves-project/nerves_system"},
24-
{:nerves_system_br, github: "nerves-project/nerves_system_br", tag: "v0.4.0"},
25-
{:nerves_toolchain_arm_unknown_linux_gnueabi, github: "nerves-project/nerves_toolchain_arm_unknown_linux_gnueabi"}]
23+
[{:nerves_system, "~> 0.1.0"},
24+
{:nerves_system_br, "~> 0.4.1"},
25+
{:nerves_toolchain_arm_unknown_linux_gnueabi, "~> 0.6.0"}]
2626
end
2727

2828
defp description do
@@ -33,6 +33,7 @@ defmodule NervesSystemRpi.Mixfile do
3333

3434
defp package do
3535
[maintainers: ["Frank Hunleth", "Justin Schneck"],
36+
files: ["LICENSE", "mix.exs", "nerves_defconfig", "nerves.exs", "README.md", "VERSION"],
3637
licenses: ["Apache 2.0"],
3738
links: %{"Github" => "https://github.com/nerves-project/nerves_system_rpi"}]
3839
end

mix.lock

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"idna": {:hex, :idna, "1.2.0"},
55
"metrics": {:hex, :metrics, "1.0.1"},
66
"mimerl": {:hex, :mimerl, "1.0.2"},
7-
"nerves_system": {:git, "https://github.com/nerves-project/nerves_system.git", "f5f12d81bab12d8cf9d57ee1ed6c6aefc092a329", []},
8-
"nerves_system_br": {:git, "https://github.com/nerves-project/nerves_system_br.git", "d2f6600f67f81b54877f8f7486769bc8d716546a", [tag: "v0.4.0"]},
9-
"nerves_toolchain": {:git, "https://github.com/nerves-project/nerves_toolchain.git", "dcade83d5f31c5d34dc31fe6b5f3cbf90389e757", []},
10-
"nerves_toolchain_arm_unknown_linux_gnueabi": {:git, "https://github.com/nerves-project/nerves_toolchain_arm_unknown_linux_gnueabi.git", "4b3b37635067f96b138a9a3f163cd8007a1ad466", []},
7+
"nerves_system": {:hex, :nerves_system, "0.1.0"},
8+
"nerves_system_br": {:hex, :nerves_system_br, "0.4.2"},
9+
"nerves_toolchain": {:hex, :nerves_toolchain, "0.6.2"},
10+
"nerves_toolchain_arm_unknown_linux_gnueabi": {:hex, :nerves_toolchain_arm_unknown_linux_gnueabi, "0.6.2"},
11+
"porcelain": {:hex, :porcelain, "2.0.1"},
1112
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.0"}}

nerves.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version =
88
config :nerves_system_rpi, :nerves_env,
99
type: :system,
1010
mirrors: [
11-
"https://github.com/nerves-project/nerves_system_br/releases/download/v#{version}/nerves_system_rpi-nerves-v#{version}.tar.gz"],
11+
"https://github.com/nerves-project/nerves_system_rpi/releases/download/v#{version}/nerves_system_rpi-v#{version}.tar.gz"],
1212
build_platform: Nerves.System.Platforms.BR,
1313
build_config: [
1414
defconfig: "nerves_defconfig"

0 commit comments

Comments
 (0)