Skip to content

Commit 320fe08

Browse files
committed
Travis needs latest sqlite version because Airflow 2.0 needs latest sqlite version
1 parent 15e95ee commit 320fe08

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.travis.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ python:
44
- "3.6" # current default Python on Travis CI
55
- "3.7"
66
- "3.8"
7-
services:
8-
- postgresql
7+
before_install:
8+
- sudo apt-get autoremove sqlite3
9+
- sudo apt-get install python-software-properties
10+
- sudo apt-add-repository -y ppa:linuxgndu/sqlite-nightly
11+
- sudo apt-get -y update
12+
- sudo apt-cache show sqlite3
913
install:
10-
- pip install apache-airflow[postgres] boto3 pylint isort marshmallow
14+
- pip install apache-airflow boto3 pylint isort marshmallow
1115
env:
12-
- AIRFLOW__BATCH__REGION=us-west-1 AIRFLOW__BATCH__JOB_NAME=some-job-name AIRFLOW__BATCH__JOB_QUEUE=some-job-queue AIRFLOW__BATCH__JOB_DEFINITION=some-job-def AIRFLOW__ECS_FARGATE__REGION=us-west-1 AIRFLOW__ECS_FARGATE__CLUSTER=some-cluster AIRFLOW__ECS_FARGATE__CONTAINER_NAME=some-container-name AIRFLOW__ECS_FARGATE__TASK_DEFINITION=some-task-def AIRFLOW__ECS_FARGATE__LAUNCH_TYPE=FARGATE AIRFLOW__ECS_FARGATE__PLATFORM_VERSION=LATEST AIRFLOW__ECS_FARGATE__ASSIGN_PUBLIC_IP=DISABLED AIRFLOW__ECS_FARGATE__SECURITY_GROUPS=SG1,SG2 AIRFLOW__ECS_FARGATE__SUBNETS=SUB1,SUB2 AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://postgres:@localhost:5432/airflow
13-
before_script:
14-
- psql -c 'create database airflow;' -U postgres
15-
- airflow initdb
16+
- AIRFLOW__BATCH__REGION=us-west-1 AIRFLOW__BATCH__JOB_NAME=some-job-name AIRFLOW__BATCH__JOB_QUEUE=some-job-queue AIRFLOW__BATCH__JOB_DEFINITION=some-job-def AIRFLOW__ECS_FARGATE__REGION=us-west-1 AIRFLOW__ECS_FARGATE__CLUSTER=some-cluster AIRFLOW__ECS_FARGATE__CONTAINER_NAME=some-container-name AIRFLOW__ECS_FARGATE__TASK_DEFINITION=some-task-def AIRFLOW__ECS_FARGATE__LAUNCH_TYPE=FARGATE AIRFLOW__ECS_FARGATE__PLATFORM_VERSION=LATEST AIRFLOW__ECS_FARGATE__ASSIGN_PUBLIC_IP=DISABLED AIRFLOW__ECS_FARGATE__SECURITY_GROUPS=SG1,SG2 AIRFLOW__ECS_FARGATE__SUBNETS=SUB1,SUB2
1617
script:
1718
- pylint --fail-under=9 ./airflow_aws_executors
1819
- isort -c -rc ./airflow_aws_executors

0 commit comments

Comments
 (0)