Skip to content

Commit

Permalink
Travis needs latest sqlite version because Airflow 2.0 needs latest s…
Browse files Browse the repository at this point in the history
…qlite version
  • Loading branch information
aelzeiny committed Mar 15, 2021
1 parent 15e95ee commit 320fe08
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ python:
- "3.6" # current default Python on Travis CI
- "3.7"
- "3.8"
services:
- postgresql
before_install:
- sudo apt-get autoremove sqlite3
- sudo apt-get install python-software-properties
- sudo apt-add-repository -y ppa:linuxgndu/sqlite-nightly
- sudo apt-get -y update
- sudo apt-cache show sqlite3
install:
- pip install apache-airflow[postgres] boto3 pylint isort marshmallow
- pip install apache-airflow boto3 pylint isort marshmallow
env:
- 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
before_script:
- psql -c 'create database airflow;' -U postgres
- airflow initdb
- 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
script:
- pylint --fail-under=9 ./airflow_aws_executors
- isort -c -rc ./airflow_aws_executors
Expand Down

0 comments on commit 320fe08

Please sign in to comment.