change way to set timezone.

This commit is contained in:
Shuduo Sang 2020-06-29 19:33:50 +08:00
parent 2dbc8048fc
commit a2bf3af34b
1 changed files with 5 additions and 10 deletions

View File

@ -36,8 +36,7 @@ matrix:
- psmisc
before_script:
- echo 'Asia/Harbin' | sudo tee /etc/timezone
- sudo dpkg-reconfigure --frontend --noninteractive tzdata
- sudo timedatectl set-timezone Asia/Harbin
- cd ${TRAVIS_BUILD_DIR}
- mkdir debug
- cd debug
@ -152,8 +151,7 @@ matrix:
- DESC="trusty/gcc-4.8 build"
before_script:
- echo 'Asia/Harbin' | sudo tee /etc/timezone
- sudo dpkg-reconfigure --frontend --noninteractive tzdata
- sudo timedatectl set-timezone Asia/Harbin
- cd ${TRAVIS_BUILD_DIR}
- mkdir debug
- cd debug
@ -177,8 +175,7 @@ matrix:
- cmake
before_script:
- echo 'Asia/Harbin' | sudo tee /etc/timezone
- sudo dpkg-reconfigure --frontend --noninteractive tzdata
- sudo timedatectl set-timezone Asia/Harbin
- cd ${TRAVIS_BUILD_DIR}
- mkdir debug
- cd debug
@ -203,8 +200,7 @@ matrix:
- cmake
before_script:
- echo 'Asia/Harbin' | sudo tee /etc/timezone
- sudo dpkg-reconfigure --frontend --noninteractive tzdata
- sudo timedatectl set-timezone Asia/Harbin
- cd ${TRAVIS_BUILD_DIR}
- mkdir debug
- cd debug
@ -233,8 +229,7 @@ matrix:
- DESC="trusty/gcc-4.8 build"
before_script:
- echo 'Asia/Harbin' | sudo tee /etc/timezone
- sudo dpkg-reconfigure --frontend --noninteractive tzdata
- sudo timedatectl set-timezone Asia/Harbin
- cd ${TRAVIS_BUILD_DIR}
- mkdir debug
- cd debug