Skip to content

Commit ef61578

Browse files
author
Martin Kjellstrand
authored
Travis initial import. (Testing docker) (#1)
* Travis initial import. (Testing docker) * Login using credentials set in Travis. * Build all supported releases.
1 parent f9722fa commit ef61578

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
sudo: required
2+
3+
services:
4+
- docker
5+
6+
before_install:
7+
- if [[ "${TRAVIS_BRANCH}" == "master" ]] ; then
8+
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD ;
9+
fi
10+
11+
script:
12+
- for DIST in lenny etch squeeze ; do
13+
make DEBIAN_VERSION=${DIST} &&
14+
if [[ "${TRAVIS_BRANCH}" == "master" ]] ; then
15+
make DEBIAN_VERSION=${DIST} push ;
16+
fi
17+
done

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ test:
99
shellcheck -s ksh ./build-archived-debian-image.sh
1010
docker run $(DOCKER_NAME):$(DEBIAN_VERSION) -c 'echo `cat /etc/os-version.txt` ok'
1111

12-
push:
12+
push: test
1313
docker push $(DOCKER_NAME):$(DEBIAN_VERSION)

0 commit comments

Comments
 (0)