forked from Silex/docker-emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (44 loc) · 1.37 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
sudo: required
services: docker
language: generic
cache:
timeout: 900
directories:
- $HOME/cache
env:
- DOCKER_IMAGES="master-alpine-ci"
- DOCKER_IMAGES="27.0-alpine-ci"
- DOCKER_IMAGES="26.3-alpine-ci"
- DOCKER_IMAGES="26.2-alpine-ci"
- DOCKER_IMAGES="26.1-alpine-ci"
- DOCKER_IMAGES="25.3-alpine-ci"
- DOCKER_IMAGES="25.2-alpine-ci"
- DOCKER_IMAGES="25.1-ci"
- DOCKER_IMAGES="24.5-ci"
- DOCKER_IMAGES="24.4-ci"
- DOCKER_IMAGES="24.3-ci"
- DOCKER_IMAGES="24.2-ci"
- DOCKER_IMAGES="24.1-ci"
- DOCKER_IMAGES="23.4-ci"
install:
- sudo sh -c 'echo 0 > /proc/sys/kernel/randomize_va_space'
- source bin/setup-env
- travis_retry images prepare $DOCKER_IMAGES
- travis_retry images build $DOCKER_IMAGES
- images test $DOCKER_IMAGES
- |
# DOCKER_USERNAME is empty for forked repositories
# TRAVIS_PULL_REQUEST is "true" for pull requests
# TRAVIS_BRANCH is the current branch or the PR target branch
# TRAVIS_PULL_REQUEST_BRANCH is the PR source branch
github_branch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
if [[ ! -z "$DOCKER_USERNAME" ]] && [[ "$TRAVIS_PULL_REQUEST" != "true" ]] && \
[[ "$github_branch" == "master" ]] || [[ "$github_branch" == "staging-"* ]]; then
images push $DOCKER_IMAGES
else
echo ">>> not pushing"
fi
notifications:
email:
on_success: never
on_failure: never