File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,20 @@ python:
18
18
- " pypy3"
19
19
20
20
before_install :
21
- - packages="postgresql-$PGVERSION postgresql-server-dev-$PGVERSION postgresql-common"
22
- - sudo sh ./travis/dep-ubuntu-postgres.sh
21
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -y install -qq wget ca-certificates; fi
22
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo sh ./travis/dep-ubuntu-postgres.sh; fi
23
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
23
24
24
25
install :
25
- - sudo apt-get update
26
26
- sudo service postgresql stop
27
27
- echo 'exit 0' | sudo tee /etc/init.d/postgresql
28
28
- sudo chmod a+x /etc/init.d/postgresql
29
- - sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install $packages
30
29
31
30
before_script :
32
- - sudo pg_createcluster --start $PGVERSION testgres -- -A trust
31
+ - sudo pg_createcluster --start $PG_VER testgres -- -A trust
33
32
- sudo chmod a+w /var/run/postgresql/
34
33
- sudo /etc/init.d/postgresql restart
35
- - export PG_CONFIG=/usr/lib/postgresql/$PGVERSION /bin/pg_config
34
+ - export PG_CONFIG=/usr/lib/postgresql/$PG_VER /bin/pg_config
36
35
- virtualenv /tmp/envs/testgres
37
36
- source /tmp/envs/testgres/bin/activate
38
37
- pip install six psycopg2 pg8000 flake8
You can’t perform that action at this time.
0 commit comments