This repository has been archived by the owner on Feb 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (44 loc) · 3.1 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
sudo: required
services:
- docker
branches:
only:
- master
- develop
- "/^hotfix/"
env:
global:
- TZ=Europe/Amsterdam
- GITHUB_REPO="wearespindle/flindt"
- DOCKER_COMPOSE_VERSION=1.22.0
- secure: qyl7JNcvjTF92OSoJ2fihhjivrIAv1qh67F8C/m+AvAYzWZBr4pG1+g324Wec0RHQIDeofJDQhn5QmvvkJtJFRrUKiLfF1yOAXYqCfAIBz80xHXRHVLDYmmxkpLxMcSltPltUTU+qVchrZ0+VIFjE5JdsWTtxALlyC3htwSA3fshFMHmG74pEfal8AB2X3I1A+iRFvOYeUvu5dBfqcMfBl3WVd+c7NI9gp6zNGVEBqYoo7jENWO/BVJoPet28AXC6ndxc4R+58/B8ewQ4f+E0DcoJ/Be3LTULUVFv2sNxQqSXzT9vxxsLiBbAeXefC61TgKi6IOzLNf8uRROUjxM8DYVPKFw7HGJKGErVGUdZh1Vdpd+6F96D/SfuzjWAblhLVKfiRLf2BHKMUR6gZhOOZSwMv7xdCiScnBYLtAw3rugnziUdY2pvrKsbpwDaIaOLsZOi3rsvqoAOzIjWtkm6oPsfEgWEYo/JLn1L01Oq7h0e1dQB7h+vNpL8bzYAm35X8zcunDdZV+Oy8aEi2ZpdLH5vVeKxtKvAepy8oq8U6Rt1bW70ASBkV0hRyKVV1DupXUeofrbIT3cNaKQFYnqfCtNdzvd3AIt6C4w8dd7CYC7ZIWjMjbcuekPnZF97EjKAf8z+6Cy7W7FB5xf8KNr2l+fJmhJqV1u4yCh38iX7Mk=
- secure: UpCEur0O0m5rxqDuSs8zMY5VNAbKztMRuUCH7aqOSuhW5/OwaBmWVKFH+MeR374Hfgu+VjVhwU+x5gROJ6fx34fC6Gc0oNrjEWToKRt2ZdREDfsBiqBJ4/vxiLufMkPQ/2ZAB06NLryFJFapT36FQ/io+u3ZMtqs5mNIwuZt2DazDVvfj0lSw8I4UDinEGLRNMY2tNsEODHh5132hBCE8uO09GdYuOeYejJtfm9A5oF1c9ngW18pzdO3HcQ1vDglI8mBlNOfzTKujGSGDJXxiC+7E9f7uRirSpvik53nvBQELUnOW9XiR6Hx/4VF0U6MXnpMWLkbow5qHoabIWT44Ey1LX3R7tzunfhtxAJ2euF/0+yoi+Alg4n83TZ/k3IdmF8h1IU87E01wV9kNpTVqmZs3Re300ZYAeZOfoxp7E5v17lwq4eWpjYz8+pxY9lCK1iz60hd6KIM4TYkbyc0ipIlsYLsjtJLCOrkPyFKn3jfaSp2+5LDgO3tpi9QnX4BwoG4Xr3f9u9hdR0OVfkPRc3OvMqUiv4S1BYeBDbYIlKj6U6bjujBgtfVhiPEgd48KvV+H7DHrO9pOQZvFtW3azwFvpS7XTU4TLmUcCjyQCyN2r6jfIBKwzd9jntpElIs7P7NKPGCeJ2rtpANuZu1mNTiz3XarfqoijFMsDnGuuQ=
- COMMIT=${TRAVIS_COMMIT::8}
language: python
python:
- '3.4'
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname
-s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
before_script:
- echo "Current datetime is $(date +'%Y%m%d%H%M')"
script:
- docker-compose -f docker-compose.prod.yml build
after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=wearespindle/flindt_backend
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH
; fi`
- docker build -f backend/Dockerfile -t $REPO:$COMMIT backend
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker push $REPO:$TAG
notifications:
email: false
slack:
on_success: always
on_failure: always
rooms:
secure: a9wYJgTVIf6TM7ywEN9blXWyYDsAUd+jup9z1NDKluaY8LmI0NNM1Nz4kwTlCzKXMUI318GzWio38Apxnybrkp17aoG6YASOo/lF2ASxi+VnT6fdroVZP8/N2dxd1ZhYhUxrNJaQCJcB1GrFLcjo2Tf9XSRIP3E0P8XJ2XrxC+WULLRoTnqnigxfGQ9mK/00u74euDarbIJZSSZrOCruQpuu7uAHQbYjSxjzMYNZEk7zM1bizWvivRY7uRvZbqRJS8FjE7afq+1sYmsRfNWCi2M2MDgXDFnYHfhYO56jhY04l7m6npxC4SV3xBYrcOOD1RcSwEljQAngkSZK4mLmKJw6G4OK6Z6wbA3KgDnUUuBrUN/LYW/qpYB3oaaKn8qWJPQisF0P3US29ugOFX9q1gviEtTzicJ0GWfrVdYI5O/P6TiFU4boGbya842oNzSonlQDnbzBFef9uxEh+wJPVUsZhb+ewPAykb3BdKG/jEKbICFkSY71nEVFNgrThOw86IzYDEw2TYl4pmCV78r9N1b1YQIKbiBSn8ZXpC2EspWQ3Ddpx/OXCmiLBJnqlqhlIPKu4YfVu4c3r7hHG0Vc2Xyj4a1daN4jbd4ZKPsTYGKeN/kpVDyylPCuCO88l6GVuHNXE/n7N4pFS2oyoqbLpqu4WNk+YBBqztlcs2wDKas=