-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
30 lines (27 loc) · 940 Bytes
/
circle.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
machine:
environment:
# Add the Postgres 9.6 binaries to the path.
PATH: /usr/lib/postgresql/9.6/bin/:$PATH
#
pre:
# Start Postgres 9.6 since the default is 9.5.
- sudo service postgresql stop
- sudo mv /usr/lib/postgresql-9.6/9.6 /usr/lib/postgresql/9.6
- sudo mv /etc/postgresql-9.6/9.6 /etc/postgresql/9.6
- sudo service postgresql start 9.6
# Add a password to the `ubuntu` user, since Postgres is configured to
# always ask for a password, and without out it will fail.
- sudo -u postgres psql -p 5433 -c "create user ubuntu with password 'ubuntu';"
- sudo -u postgres psql -p 5433 -c "alter user ubuntu with superuser;"
# Create a new test database.
- sudo -u postgres psql -p 5433 -c "create database test;"
dependencies:
cache_directories:
- "~/.stack"
- ".stack-work"
override:
- stack setup
- stack build --fast
test:
override:
- stack test