Skip to content

Commit c7e13ae

Browse files
committed
Add support for s390x in travis.yml
1 parent ebe0199 commit c7e13ae

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ matrix:
55
include:
66
- go: 1.12.x
77
- go: 1.13.x
8+
- arch: s390x
9+
go: 1.12.x
10+
- arch: s390x
11+
go: 1.13.x
812

913
# Install g++-4.8 to support std=c++11 for github.com/google/certificate-transparency/go/merkletree
1014
addons:
@@ -33,6 +37,16 @@ branches:
3337

3438
before_script:
3539
- make bin/golint
40+
#Setup postgresql for s390x environment
41+
- if [[ $(uname -m) == 's390x' ]]; then
42+
sudo apt-get --purge remove postgresql-*;
43+
sudo rm -Rf /etc/postgresql /var/lib/postgresql;
44+
sudo apt-get update;
45+
sudo apt-get install -y postgresql-9.5;
46+
sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/9.5/main/pg_hba.conf;
47+
sudo service postgresql restart;
48+
sudo -u postgres createuser travis;
49+
fi
3650
# Setup DBs + run migrations
3751
# The sql_mode adjustment is to remove a sql_mode that was added in MySQL 5.7, this mode applies a rule that does:
3852
# > The NO_ZERO_DATE mode affects whether the server permits '0000-00-00' as a valid date.

0 commit comments

Comments
 (0)