forked from Tecnativa/doodba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (55 loc) · 1.12 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
58
59
60
61
62
63
64
65
66
67
68
os: linux
language: python
python:
- "3.6"
services:
- docker
git:
depth: 1
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/pre-commit
branches:
only:
- master
stages:
- name: lint
- name: test
env:
global:
# Indicates what's the equivalent to tecnativa/doodba:latest image
- LATEST_RELEASE=13.0
# Variables found by default in Docker Hub builder
- DOCKER_REPO=tecnativa/doodba
jobs:
- DOCKER_TAG=13.0
- DOCKER_TAG=12.0
- DOCKER_TAG=11.0
- DOCKER_TAG=10.0 PG_VERSIONS=12
- DOCKER_TAG=9.0 PG_VERSIONS=11
- DOCKER_TAG=8.0 PG_VERSIONS=10
- DOCKER_TAG=7.0 PG_VERSIONS=9.6
jobs:
include:
stage: lint
install: []
script:
- pre-commit run --all --show-diff-on-failure
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::=--force-confnew install docker-ce
- ./hooks/pre_build
install:
- chown -R $USER:$USER .
- chmod -R +r .
- ./hooks/build
script:
- python -m unittest -v tests
deploy:
provider: script
script: ./hooks/push
on:
branch: master
condition:
- $TRAVIS_BUILD_STAGE_NAME = Test