Skip to content

Commit

Permalink
remove python 2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chhsiung committed May 5, 2020
1 parent 5266c03 commit d1a2ab6
Showing 1 changed file with 4 additions and 56 deletions.
60 changes: 4 additions & 56 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,33 +73,7 @@ jobs:
name: Install postgres dependencies.
command: |
apt-get update
apt-get -y install python2.7-dev python-pip libpq-dev wget postgresql-client
- wait_for_database:
port: 5432
- run:
name: Load ddldump postgres schema
command: psql -h 127.0.0.1 -U postgres < ddldump_postgres.sql
- run:
name: Install postgres driver for python
command: pip install psycopg2
- install_ddldump:
python: "python2.7"
pip: "pip2"
- run:
name: Run ddldump againt the postgres dumpfile
command: ddldump --diff=ddldump_postgres.sql postgresql://postgres:[email protected]:5432

postgrespython3:
docker:
- image: ubuntu:20.04
- image: circleci/postgres:9.6.8-alpine
steps:
- checkout
- run:
name: Install postgres dependencies.
command: |
apt-get update
apt-get -y install python2.7-dev python3-pip libpq-dev wget postgresql-client
apt-get -y install python3-pip libpq-dev wget postgresql-client
- wait_for_database:
port: 5432
- run:
Expand All @@ -109,37 +83,13 @@ jobs:
name: Install postgres driver for python
command: pip3 install psycopg2
- install_ddldump:
python: "python3.7"
python: "python3"
pip: "pip3"
- run:
name: Run ddldump againt the postgres dumpfile
command: ddldump --diff=ddldump_postgres.sql postgresql://postgres:[email protected]:5432

mysql:
docker:
- image: ubuntu:20.04
- image: circleci/mysql:5.7.28
steps:
- checkout
- run:
name: Install dependencies
command: |
apt-get update
apt-get -y install python2.7-dev python-pip libssl-dev default-libmysqlclient-dev wget mysql-client
- wait_for_database:
port: 3306
- load_mysql_ddl
- run:
name: Install mysql driver for python
command: pip install mysqlclient
- install_ddldump:
python: "python2.7"
pip: "pip2"
- run:
name: Run ddldump against the mysql dumpfile
command: ddldump --diff=ddldump_mysql.sql mysql://:@127.0.0.1:3306/ddldump

mysqlpython3:
docker:
- image: ubuntu:20.04
- image: circleci/mysql:5.7.28
Expand All @@ -157,11 +107,11 @@ jobs:
name: Install mysql driver for python
command: pip3 install mysqlclient
- install_ddldump:
python: "python3.7"
python: "python3"
pip: "pip3"
- run:
name: Run ddldump against the mysql dumpfile
command: ddldump --diff=ddldump_mysql.sql mysql://:@127.0.0.1:3306/ddldump
command: ddldump --diff=ddldump_mysql.sql mysql://@127.0.0.1:3306/ddldump

workflows:
version: 2
Expand All @@ -170,6 +120,4 @@ workflows:
- black
- mdl
- postgres
- postgrespython3
- mysql
- mysqlpython3

0 comments on commit d1a2ab6

Please sign in to comment.