This repository has been archived by the owner on Nov 18, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
79 lines (67 loc) · 1.63 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
dist: trusty
git:
depth: 1
language: node_js
sudo: required
before_install:
- ./docker-util/sh/install-docker-on-trusty.sh
- sudo service docker stop
- sudo dockerd --experimental &
- docker version
env:
global:
- DOCKER_IMAGE_NAME=travis-cli
- DOCKER_STAGE_IMAGE_NAME=beeglercorpstage/$DOCKER_IMAGE_NAME
- IMAGE_SIZE_THRESHOLD=35
install: true
stages:
- name: Build
- name: Stage Image
if: branch = staging AND type = push
jobs:
include:
- stage: Build
env:
- ALPINE_VERSION=latest
- TAG=latest
script:
- ./sh/ci/build.sh
- stage: Build
env:
- ALPINE_VERSION=edge
- TAG=alpine-$ALPINE_VERSION
script:
- ./sh/ci/build.sh
- stage: Build
env:
- ALPINE_VERSION=3.5
- TAG=alpine-$ALPINE_VERSION
script:
- ./sh/ci/build.sh
- stage: Stage Image
env:
- ALPINE_VERSION=latest
- DOCKER_PUBLIC_IMAGE_NAME=$DOCKER_STAGE_IMAGE_NAME
- TAG=latest
script:
- ./sh/ci/build.sh
- ./sh/ci/deploy.sh
- ./sh/ci/test-deploy.sh
- stage: Stage Image
env:
- ALPINE_VERSION=edge
- DOCKER_PUBLIC_IMAGE_NAME=$DOCKER_STAGE_IMAGE_NAME
- TAG=alpine-$ALPINE_VERSION
script:
- ./sh/ci/build.sh
- ./sh/ci/deploy.sh
- ./sh/ci/test-deploy.sh
- stage: Stage Image
env:
- ALPINE_VERSION=3.5
- DOCKER_PUBLIC_IMAGE_NAME=$DOCKER_STAGE_IMAGE_NAME
- TAG=alpine-$ALPINE_VERSION
script:
- ./sh/ci/build.sh
- ./sh/ci/deploy.sh
- ./sh/ci/test-deploy.sh