forked from drmobile/dynamodb-titan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (48 loc) · 1.92 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
language: python
python:
- "2.7"
# https://docs.travis-ci.com/user/docker/
sudo: required
services:
- docker
env:
global:
- TRAVIS_SECURE_ENV_VARS=true
- DOCKER_USERNAME=jonascheng
- secure: "jehyR08v40yiAwaM7usFWYS6egzJgOqFyIe4gjnS0PRbIXQ7yTysiJFomLocqW5TC+692nwU3ksag+0kgnB2+A4ztSLxofJaS+63DalFhvjB4+dO6G9q1n07h8pJ35daG1VIZBPbhh1Uju+40HB1wxgttSy9CZ3xiwhXsljr/4i6eNMxPN+IrxvP0y4O8Zc4F3xxjXhQ+/TIQVSXmGnbw4xtn0hpAajC3ToewBkb6H4ERgjF3Q448TgdEX7E/sYBaayW5E82sGAoqNInYvPXwYO9yewLgX08f9kdwTfYJdSnBPocZ5yaLUYR58peLZdT9DPpoxR6HqXjRWqVB5eEIKzU3zr9dNlKYEINb33LiAdWsLm2QYzEixcZbh4omumg3rgflkLHIhavguFzIDKycdxzQ2/8ZojKPaFGXLqOE3Viec9Kb1CuVQJzMAnfF2SY3pVIKla35F4bDoOWt5YM0YXyFrVsJx5EsOuwBbDOEh7vy1VhkkRpGDmjbTmOKmFJCpAitgFqjgFV/TRPOERJnH+np+JGdtu0OezWidHIShUGMrOqf91NdSRGFVfxUQtddCp4ES37O/uQMFXzq+fDbSbH+0Xgj3dzAiYM5h3XFZJXxebHpFy+W9FvQ3tBpRFQeMAnFvHbMXpABL1VAdFUOW3aokUHKK6+EZg1IhZJvn8="
before_install:
- docker pull soocii/titan-on-dynamodb
- docker pull soocii/dynamodb-local
# build titan
- pushd docker
- pushd titan-on-dynamodb
- docker build --build-arg version=$TRAVIS_BUILD_NUMBER -t soocii/titan-on-dynamodb -f Dockerfile .
- docker tag soocii/titan-on-dynamodb soocii/titan-on-dynamodb:$TRAVIS_BUILD_NUMBER
- popd
- popd
# build dynamodb-local
- pushd docker
- pushd dynamodb-local
- docker build -t soocii/dynamodb-local -f Dockerfile .
- popd
- popd
- docker-compose build titan-inmemory
install:
- docker-compose up -d
before_script:
- easy_install distribute
- pip install -r requirements.txt
script:
- pushd tests
- ./run_test.sh
- popd
after_script:
- docker-compose down
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push soocii/titan-on-dynamodb;
docker push soocii/titan-on-dynamodb:$TRAVIS_BUILD_NUMBER;
docker push soocii/dynamodb-local;
docker push soocii/titan-inmemory;
fi