-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
45 lines (39 loc) · 1.17 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
machine:
hosts:
slicklabs.local: 127.0.0.1
php:
version: 5.6.14
node:
version: 0.12.0
environment:
PALANTIR_ENVIRONMENT: circle
general:
branches:
ignore:
- gh-pages
- /.*(readme|documentation).*/
dependencies:
pre:
- cp $HOME/$CIRCLE_PROJECT_REPONAME/conf/apache.circle.conf /etc/apache2/sites-available/default
- sed -e "s?%PROJECT_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
- sudo a2enmod rewrite
- echo "sendmail_path=/bin/true" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "memory_limit=256M" > ~/.phpenv/versions/$(phpenv global)/etc/conf.d/memory.ini
- sudo service apache2 restart
# Generate a GitHub token per project and add it to the CircleCI environment variables using the web UI.
- composer config --global github-oauth.github.com $GITHUB_TOKEN
override:
- composer install --no-interaction
cache_directories:
- node_modules
- vendor
- web/core
- web/modules/contrib
- web/profiles/contrib
- ~/.composer
- ~/.npm
test:
pre:
- vendor/bin/phing build install migrate
override:
- vendor/bin/phing code-review test