-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temp fix CI: add py39, skip py27, disable email & telegram alert (#184)
ENABLE_EMAIL_ALERT and ENABLE_TELEGRAM_ALERT set to False in the Environment Variables of CircleCI.
- Loading branch information
Showing
5 changed files
with
38 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,18 +177,11 @@ jobs: | |
<<: *test-template | ||
docker: | ||
- image: circleci/python:2.7 | ||
py27-sqlite: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:2.7 | ||
environment: | ||
SCRAPYDWEB_TESTMODE: True | ||
DATA_PATH: '/home/circleci/repo/scrapydweb_data' | ||
DATABASE_URL: 'sqlite:////home/circleci/repo/scrapydweb_database' | ||
py27-postgresql: | ||
|
||
py37-git-postgresql: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:2.7 | ||
- image: circleci/python:3.7 | ||
# CircleCI PostgreSQL images available at: https://hub.docker.com/r/circleci/postgres/ | ||
- image: circleci/postgres:9.6-alpine | ||
environment: | ||
|
@@ -199,11 +192,12 @@ jobs: | |
POSTGRES_PASSWORD: passw0rd | ||
environment: | ||
SCRAPYDWEB_TESTMODE: True | ||
DATABASE_URL: 'postgres://circleci:fakepassword@localhost:5432' | ||
py27-mysql: | ||
DATABASE_URL: 'postgresql://circleci:fakepassword@localhost:5432' | ||
|
||
py37-git-mysql: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:2.7 | ||
- image: circleci/python:3.7 | ||
# https://circleci.com/docs/2.0/postgres-config/#example-mysql-project | ||
# Plugin caching_sha2_password could not be loaded | ||
# - image: circleci/mysql:8.0.4 | ||
|
@@ -218,10 +212,19 @@ jobs: | |
SCRAPYDWEB_TESTMODE: True | ||
DATABASE_URL: 'mysql://root:[email protected]:3306' | ||
|
||
py37-git-postgresql: | ||
py38-sqlite: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:3.7 | ||
- image: circleci/python:3.8 | ||
environment: | ||
SCRAPYDWEB_TESTMODE: True | ||
DATA_PATH: '/home/circleci/repo/scrapydweb_data' | ||
DATABASE_URL: 'sqlite:////home/circleci/repo/scrapydweb_database' | ||
|
||
py38-postgresql: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:3.8 | ||
# CircleCI PostgreSQL images available at: https://hub.docker.com/r/circleci/postgres/ | ||
- image: circleci/postgres:9.6-alpine | ||
environment: | ||
|
@@ -232,11 +235,12 @@ jobs: | |
POSTGRES_PASSWORD: passw0rd | ||
environment: | ||
SCRAPYDWEB_TESTMODE: True | ||
DATABASE_URL: 'postgres://circleci:fakepassword@localhost:5432' | ||
py37-git-mysql: | ||
DATABASE_URL: 'postgresql://circleci:fakepassword@localhost:5432' | ||
|
||
py38-mysql: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:3.7 | ||
- image: circleci/python:3.8 | ||
# https://circleci.com/docs/2.0/postgres-config/#example-mysql-project | ||
# Plugin caching_sha2_password could not be loaded | ||
# - image: circleci/mysql:8.0.4 | ||
|
@@ -251,31 +255,17 @@ jobs: | |
SCRAPYDWEB_TESTMODE: True | ||
DATABASE_URL: 'mysql://root:[email protected]:3306' | ||
|
||
py38-sqlite: | ||
py39: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:3.8 | ||
environment: | ||
SCRAPYDWEB_TESTMODE: True | ||
DATA_PATH: '/home/circleci/repo/scrapydweb_data' | ||
DATABASE_URL: 'sqlite:////home/circleci/repo/scrapydweb_database' | ||
- image: circleci/python:3.9 | ||
|
||
|
||
workflows: | ||
test: | ||
jobs: | ||
- py27: | ||
is-py27: true | ||
- py27-sqlite: | ||
is-py27: true | ||
set-data-path: true | ||
use-sqlite: true | ||
- py27-postgresql: | ||
is-py27: true | ||
use-postgresql: true | ||
- py27-mysql: | ||
is-py27: true | ||
use-mysql: true | ||
# - py27: | ||
# is-py27: true | ||
|
||
- py37 | ||
- py37-git-postgresql: | ||
|
@@ -288,3 +278,10 @@ workflows: | |
- py38-sqlite: | ||
set-data-path: true | ||
use-sqlite: true | ||
- py38-postgresql: | ||
use-postgresql: true | ||
- py38-mysql: | ||
use-mysql: true | ||
|
||
- py39 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -362,7 +362,7 @@ | |
# To use PostgreSQL backend, run command: pip install --upgrade psycopg2 | ||
# e.g. | ||
# 'mysql://username:[email protected]:3306' | ||
# 'postgres://username:[email protected]:5432' | ||
# 'postgresql://username:[email protected]:5432' | ||
# 'sqlite:///C:/Users/username' | ||
# 'sqlite:////home/username' | ||
DATABASE_URL = os.environ.get('DATABASE_URL', '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters