forked from nstapelbroek/estate-crawler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (24 loc) · 1011 Bytes
/
.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
dist: bionic
language: python
python: '3.9'
install: pipenv install --dev
services:
- docker
# By default, we build only on pushes to master or Pull Requests
if: type != push OR branch = latest
jobs:
include:
- stage: Build, Test and Publish
name: Testrun crawler
script: pipenv run ./crawler.py --region Utrecht
- stage: Build, Test and Publish
name: Build image
if: type = pull_request
install: docker pull nstapelbroek/estate-crawler:latest
script: make validate-pr
- stage: Build, Test and Publish
name: Build and publish image
if: branch = latest AND type != pull_request
install: docker pull nstapelbroek/estate-crawler:latest
script: make validate
after_success: printenv DOCKERHUB_PASSWORD | docker login --username nstapelbroekbot --password-stdin && docker tag nstapelbroek/estate-crawler:$TRAVIS_BRANCH docker.io/nstapelbroek/estate-crawler:$TRAVIS_BRANCH && docker push docker.io/nstapelbroek/estate-crawler