forked from nerves-project/nerves_system_br
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (53 loc) · 1.41 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
54
55
56
57
58
59
60
language: bash
# Use the container-based infrastructure
sudo: false
# Install dependencies
addons:
apt:
packages:
- bc
- libssl-dev
# Cache downloaded files between builds
cache:
directories:
- $HOME/.nerves/cache/buildroot
# Build the official configurations
env:
matrix:
- NERVES_CONFIG=nerves_bbb_elixir
- NERVES_CONFIG=nerves_rpi_elixir
- NERVES_CONFIG=nerves_rpi2_elixir
- NERVES_CONFIG=nerves_galileo_elixir
# Inspect the cache and build
script:
- ls -las $HOME/.nerves/cache/buildroot || true
- ./scripts/ci-build.sh
# Deploy the build products
before_deploy:
- ./scripts/ci-deploy.sh
deploy:
# Deploy tagged releases to GitHub
- provider: releases
api_key: $GITHUB_API_KEY
file:
- "artifacts/nerves-system-$NERVES_CONFIG-$TRAVIS_TAG.tar.gz"
- "artifacts/$NERVES_CONFIG-$TRAVIS_TAG.fw"
skip_cleanup: true
on:
repo: nerves-project/nerves-system-br
tags: true
# Copy all build products to S3
- provider: s3
access_key_id: $ARTIFACTS_KEY
secret_access_key: $ARTIFACTS_SECRET
bucket: $ARTIFACTS_BUCKET
skip_cleanup: true
local_dir: artifacts
upload-dir: nerves-system-br
storage_class: "REDUCED_REDUNDANCY" # See https://github.com/travis-ci/dpl/issues/291
on:
repo: nerves-project/nerves-system-br
all_branches: true
# Display build log on failure
after_failure:
- tail -n 1000 build.log