Skip to content

Commit a5dcdaa

Browse files
set timezone in travis
1 parent 1bf40b3 commit a5dcdaa

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ addons:
2323
packages:
2424
- realpath
2525
- mailutils
26+
before_install:
27+
#- echo 'Africa/Johannesburg' | sudo tee /etc/timezone
28+
#- sudo dpkg-reconfigure --frontend noninteractive tzdata
29+
- export TZ=Africa/Johannesburg
2630
install:
2731
- sudo add-apt-repository -y ppa:nginx/stable
2832
- sudo apt-get update
2933
- sudo apt-get install -y --force-yes nginx-extras
3034
#- travis-ci/install-nginx2.sh
31-
before_script:
32-
- echo 'Africa/Johannesburg' | sudo tee /etc/timezone
33-
- sudo dpkg-reconfigure --frontend noninteractive tzdata
3435
script:
3536
- travis-ci/install-nginx2.sh
3637
- curl -vsf 'http://localhost:9000/index.php' &> /dev/stdout

travis-ci/install-nginx2.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ set -x
6161
#nginx -c "$DIR/nginx/nginx.conf"
6262
#echo $TRAVIS_BUILD_DIR
6363
# Set TimeZone
64-
sudo timedatectl set-timezone Africa/Johannesburg
64+
#sudo timedatectl set-timezone Africa/Johannesburg
6565
sudo timedatectl status
66+
date
6667
# End Set Timezone
6768
sudo rm /etc/nginx/sites-available/default
6869
sudo wget https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/install-ngxblocker -O /usr/sbin/install-ngxblocker

0 commit comments

Comments
 (0)