-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
54 lines (49 loc) · 1.62 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
51
52
53
54
# https://circleci.com/docs/configuration#machine
machine:
php:
version: 5.5.11
timezone:
Europe/Athens
# https://circleci.com/docs/environment#databases
environment:
# https://circleci.com/docs/config-sample#sample
DATABASE_URL: mysql://ubuntu:@127.0.0.1/circle_test
DB_ENCODE: 'utf8'
BRANCH: '7.x-1.x'
FULL_BRANCH: '7.x-1.0'
GITHUB_REPO: '[email protected]:theodorosploumis/hidden-catalog.git'
GITHUB_FULL_REPO: '[email protected]:theodorosploumis/hidden-catalog-full.git'
dependencies:
# Install additional test dependencies here (like drush, terminus, redis, Behat, etc).
pre:
# Prepare git
# Install Drush.
- composer global require drush/drush:6.x --prefer-source --no-interaction
- drush cc drush
override:
# Make a Drupal installation to run the tests
- git clone --branch $BRANCH $GITHUB_REPO $BUILD_DIR
- cd $BUILD_DIR
#- pwd
- rm -rf .git
- drush --yes make --prepare-install build-hidden_catalog.make webroot
test:
override:
#- cd /home/ubuntu/hidden-catalog/webroot
#- drush -y site-install hidden_catalog --db-url='$DATABASE_URL' --site-name='Test Drupal distro'
- drush status
#deployment:
# production:
# branch: '$FULL_BRANCH'
# pwd:
# /home/ubuntu/hidden-catalog/webroot
# commands:
# # Push to github
# - git init
# - git remote add origin '$GITHUB_FULL_REPO'
# - git config --global user.email "[email protected]"
# - git config --global user.name "CI User"
# - git add --all
# - git commit -am "CI upload"
# - pwd
# - git push '$GITHUB_FULL_REPO' '$FULL_BRANCH' -f