forked from gaul/s3proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 1.16 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
dist: trusty
sudo: required
language: java
jdk:
- openjdk7
env:
global:
- secure: "kLL/DJT13SO4WGpqzBTRqzbk4sOg6zeczQXSbC6I2W4hUCrr1hgFZt2bhZAI7AD89Q633Yj0XczOFWAlKIb0h/1jauCHwxmhDKieDI6VibnoauuFlKDT/279768Wg4oVnRM+uSeSd69jrsTnngbCckKAgSqow0XR3BcM6iSITaM=" # DOCKER_USER
- secure: "FykiXU5ZFxIvw28pp0BgLJULRAOs1QSc10Cx2hp8fW1I1U/JUxv1RlawePoyNgpGNCZvLQMZJtaccEZUBzc0ucFnMZD5Cu+powGzdXos0v3W7Fb5YI7lSabIa8Zq6mYYp+toaMJRx3dJcIwAtFiMRzbqM3d9DECKLb/9N2IvLRU=" # DOCKER_PASS
- COMMIT=${TRAVIS_COMMIT::8}
addons:
apt_packages:
- python-pip
- python-virtualenv
- libevent-dev
services:
- docker
script:
- mvn test
# Work around Travis environment failure: https://github.com/travis-ci/travis-ci/issues/7940
- export BOTO_CONFIG=/dev/null
- ./src/test/resources/run-s3-tests.sh
after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=andrewgaul/s3proxy
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO