forked from pantheon-systems/documentation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
54 lines (49 loc) · 1.24 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:
# https://circleci.com/docs/environment#php
version: 5.5.31
dependencies:
cache_directories:
- ~/.composer/cache
post:
# Build the CSS.
- grunt
# Build the static site.
- bin/sculpin generate
- for file in output_dev/docs/changelog/page/*html; do name="$(basename "$file" .html)"; mkdir -p output_dev/docs/changelog/page/"$name"; mv "$file" "output_dev/docs/changelog/page/"$name"/index.html"; done
- cd output_dev && ln -s ./ source
# Deploy Multidev environment
- bash scripts/deploy-multidev.sh
test:
pre:
# Start Ghost Driver.
- phantomjs --webdriver=8643:
background: true
# Start Sculpin.
- bin/sculpin server:
background: true
override:
# Run sitespeed.io performance testing.
- bash scripts/run-sitespeed-test.sh
# Run behat.
- bin/behat
# Run a11y.
- grunt test
# Look for merge conflicts.
- scripts/merge_conflicts.sh
# Run htmlproofer.
- bundler exec rake
deployment:
production:
branch: master
commands:
- bash scripts/deploy-live.sh
experimental:
notify:
branches:
only:
- master
general:
artifacts:
- sitespeed-result