-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcircle.yml
23 lines (21 loc) · 960 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
machine:
php:
version: 5.6.2
environment:
PATH: ${HOME}/${CIRCLE_PROJECT_REPONAME}/vendor/bin:${PATH}
DCR_PROJECT_ROOT: ${HOME}/${CIRCLE_PROJECT_REPONAME}
dependencies:
override:
# Run installation of all dependencies unsing composer locally.
- "if [ \"$GITHUB_TOKEN\" != \"\" ] ; then cd $HOME/$CIRCLE_PROJECT_REPONAME && composer config -g github-oauth.github.com $GITHUB_TOKEN; fi"
- cd $HOME/$CIRCLE_PROJECT_REPONAME && composer install
# Run a second part of the installation to link all required parts.
- cd $HOME/$CIRCLE_PROJECT_REPONAME && bash dcr install
# Install bats CLI testing.
- cd $HOME && git clone https://github.com/sstephenson/bats.git && cd bats && sudo ./install.sh /usr/local
test:
override:
# Run environment tests.
- cd $DCR_PROJECT_ROOT && source ~/.profile && bats -p tests/bats/environment.bats
# Run app tests.
- cd $DCR_PROJECT_ROOT && source ~/.profile && bats -p tests/bats/app.bats