forked from DrupalMexico/camp-gdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
38 lines (31 loc) · 1.35 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
########################
# Customize the test machine
########################
machine:
# Set the timezeone - any value from /usr/share/zoneinfo/ is valid here
timezone:
America/Mexico_City
# Version of php to use
php:
version: 5.5.11
environment:
PATH: '$HOME/.composer/vendor/bin:$PATH'
PROJECT_PATH: '$HOME/$CIRCLE_PROJECT_REPONAME'
PROJECT_DRUPAL_PATH: '$PROJECT_PATH/docroot'
dependencies:
pre:
- sudo curl https://github.com/pantheon-systems/cli/releases/download/0.9.3/terminus.phar -L -o /usr/local/bin/terminus && sudo chmod +x /usr/local/bin/terminus
#auth to terminus
- terminus auth login $PEMAIL --password="$PPASS"
override:
#avoid cache remote
- if git remote | grep pantheon > /dev/null; then git remote rm pantheon; fi
#adding remote once again
- git remote add pantheon ssh://[email protected].$PUUID.drush.in:2222/~/repository.git
- if [ $CIRCLE_BRANCH == 'master' ] ; then git checkout $CIRCLE_BRANCH && git push pantheon $CIRCLE_BRANCH --force && terminus site clear-cache --site=$CIRCLE_PROJECT_REPONAME --env=dev; fi
#- if [ $CIRCLE_BRANCH != 'master' ] ; then
# terminus site create-env --site=$CIRCLE_PROJECT_REPONAME --to-env=$CIRCLE_PR_USERNAME-pr-$CIRCLE_PR_NUMBER --from-env=dev && \
test:
override:
#if you have test please share us :)
- exit 0