-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
54 lines (46 loc) · 1.3 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: generic
services:
- postgresql
- mysql
os:
- linux
- osx
env:
matrix:
- DB=sqlite3 PHARO_VERSION=50
- DB=mysql PHARO_VERSION=50
- DB=postgresV2 PHARO_VERSION=50
- DB=sqlite3 PHARO_VERSION=61
- DB=mysql PHARO_VERSION=61
- DB=postgresV2 PHARO_VERSION=61
- DB=sqlite3 PHARO_VERSION=70
- DB=mysql PHARO_VERSION=70
- DB=postgresV2 PHARO_VERSION=70
addons:
postgresql: "9.4"
apt:
packages:
- libasound2:i386
- libz1:i386
- libbz2-1.0:i386
- libssl1.0.0:i386
- libfreetype6:i386
- libsqlite3-0:i386
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export PG_DATA=$(brew --prefix)/var/postgres;
rm -rf ${PG_DATA} && initdb ${PG_DATA} -E utf8;
pg_ctl -w start -l postgres.log --pgdata ${PG_DATA};
createuser -s postgres;
cat postgres.log;
fi;
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew update > /dev/null && brew install mysql && mysql.server start; fi
install:
# We prepare SQLITE, Pharo and garage packages
- ln -s /usr/lib/i386-linux-gnu/libsqlite3.so.0 libsqlite3
- wget -O - get.pharo.org/${PHARO_VERSION}+vm | bash
- ./scripts/install-packages.sh $DB
before_script:
- ./scripts/setup.sh $DB
script:
- ./pharo Pharo.image test --no-xterm --fail-on-failure "Glorp.*"