forked from epoch8/airflow-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 1.72 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
sudo: false
services:
- docker
# Docker-compose setup
# https://docs.travis-ci.com/user/docker/
env:
global:
- DOCKER_COMPOSE_VERSION=1.9.0
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
- chmod +x tests/test_metrics_up.sh
script:
# Test Airflow 1.8 with Python 2
- cd tests/airflow1.8-py2 && docker-compose build --no-cache && docker-compose up -d
- ${TRAVIS_BUILD_DIR}/tests/test_metrics_up.sh
- docker-compose down
# Test Airflow 1.9 with Python 3
- mkdir ${TRAVIS_BUILD_DIR}/tests/airflow1.9-py3/airflow/logs
- chmod -R 777 ${TRAVIS_BUILD_DIR}/tests/airflow1.9-py3/airflow/logs
- cd ${TRAVIS_BUILD_DIR}/tests/airflow1.9-py3 && docker-compose build --no-cache && docker-compose up -d
- ${TRAVIS_BUILD_DIR}/tests/test_metrics_up.sh
- docker-compose down
# Test Airflow 1.10 with Python 3
- mkdir ${TRAVIS_BUILD_DIR}/tests/airflow1.10-py3/airflow/logs
- chmod -R 777 ${TRAVIS_BUILD_DIR}/tests/airflow1.10-py3/airflow/logs
- cd ${TRAVIS_BUILD_DIR}/tests/airflow1.10-py3 && docker-compose build --no-cache && docker-compose up -d
- ${TRAVIS_BUILD_DIR}/tests/test_metrics_up.sh
- docker-compose down
# Test Airflow 1.10 with RBAC and Python 3
- mkdir ${TRAVIS_BUILD_DIR}/tests/airflow1.10-rbac-py3/airflow/logs
- chmod -R 777 ${TRAVIS_BUILD_DIR}/tests/airflow1.10-rbac-py3/airflow/logs
- cd ${TRAVIS_BUILD_DIR}/tests/airflow1.10-rbac-py3 && docker-compose build --no-cache && docker-compose up -d
- ${TRAVIS_BUILD_DIR}/tests/test_metrics_rbac_up.sh
- docker-compose down