-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcircle.yml
32 lines (30 loc) · 991 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
31
32
machine:
environment:
LANG: C.UTF-8
php:
version: 5.6.14
dependencies:
cache_directories:
- "~/.stack"
- "~/offset/.stack-work"
pre:
- wget https://github.com/commercialhaskell/stack/releases/download/v1.4.0/stack-1.4.0-linux-x86_64-static.tar.gz -O /tmp/stack.tar.gz
- tar xvzf /tmp/stack.tar.gz -C /tmp
- sudo mv /tmp/stack-1.4.0-linux-x86_64-static/stack /usr/bin/stack
- mkdir ~/.local/bin
- cp ~/offset/wp/wp-cli-1.5.1.phar ~/.local/bin/wp
- chmod +x ~/.local/bin/wp
override:
- stack setup
- stack build --jobs=4
- stack test --no-run-tests
test:
pre:
- cd wp && wp core config --dbname=circle_test --dbuser=ubuntu --dbpass=
- cd wp && wp core install --admin_user=offset --admin_password=111 --url=localhost --title="Offset Test" --admin_email="[email protected]"
override:
- cd wp && wp server --port=5555:
background: true
- sleep 5
- cd wp && python setup_posts.py
- stack test