-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
49 lines (42 loc) · 1.29 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
#-------------------------------------------------------------------------------
# Copyright (C) 2017 Create-Net / FBK.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Create-Net / FBK - initial API and implementation
#-------------------------------------------------------------------------------
language: node_js
node_js:
- "7"
sudo: required
services:
- docker
cache:
directories:
- $HOME/docker-cache/
env:
global:
- COMPONENT=agile-ui
- DOCKER_CACHE_FILE=/home/travis/docker-cache/cache.tar.gz
matrix:
- DOCKER_IMAGE=agileiot/$COMPONENT-armv7l
VERSIONIST=true
- DOCKER_IMAGE=agileiot/$COMPONENT-x86_64
BASEIMAGE_BUILD=resin/intel-nuc-node:7.8.0-20170506
before_install:
- source <(curl -s https://raw.githubusercontent.com/Agile-IoT/agile-ci-scripts/master/agile-ci-functions.sh)
- docker_upgrade
- cache_load
- bootstrap
- echo "Tagging the build with tag - $DOCKER_TAG"
script:
- travis_wait 40 docker_build_if_needed
- cache_save
after_success:
- docker_push_if_needed
- versionist_if_needed