forked from pantheon-systems/solr-power
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
50 lines (48 loc) · 1.72 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
machine:
php:
# https://circleci.com/docs/environment#php
version: 5.6.22
environment:
TERMINUS_ENV: ci-$CIRCLE_BUILD_NUM
TERMINUS_SITE: solr-power
SITE_ENV: $TERMINUS_SITE.$TERMINUS_ENV
WORDPRESS_ADMIN_USERNAME: pantheon
# A random password is set in the dependencies:pre stage as a text file.
# This line reads the same file repeatedly. If the openssl call were used
# in this step, it would result in a different password being used in each
# line of other steps. Each CircleCI command runs in a separate shell.
WORDPRESS_ADMIN_PASSWORD: $(cat ~/WORDPRESS_ADMIN_PASSWORD)
WORDPRESS_ADMIN_EMAIL: [email protected]
PATH: $PATH:~/terminus/bin
dependencies:
cache_directories:
- ~/.composer/cache
- ~/node_modules
pre:
# The environment step uses this file to set a global variable.
- echo $(openssl rand -hex 8) > ~/WORDPRESS_ADMIN_PASSWORD
# Set the PHP timezone so that Behat script does not fail.
# Using > instead of >> will overwrite the file and disable xdebug.
# xdebug makes composer slower.
- echo "date.timezone = 'US/Central'" > /opt/circleci/php/5.6.22/etc/conf.d/xdebug.ini
- |
if [ -z "$GITHUB_TOKEN" ]; then
echo "GITHUB_TOKEN environment variables missing; assuming unauthenticated build"
exit 0
fi
echo "Setting GitHub OAuth token with suppressed ouput"
{
composer config -g github-oauth.github.com $GITHUB_TOKEN
} &> /dev/null
- ./bin/install-terminus.sh
test:
pre:
- composer install --prefer-dist
- ./bin/behat-prepare.sh
- npm -g install grunt-cli
- npm install
- grunt
override:
- ./bin/behat-test.sh --strict
post:
- ./bin/behat-cleanup.sh