-
Notifications
You must be signed in to change notification settings - Fork 170
/
circle.yml
47 lines (47 loc) · 1.54 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
general:
branches:
only:
- master
machine:
services:
- docker
checkout:
post:
- git remote set-url origin "git@github.com:${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git"
- git fetch -f -p origin release-template:release
# Check for any changes, otherwise fail the build
- . Scripts/check-for-changes.sh
- git config --global user.email "chase+circleci@colman.io"
- git config --global user.name "CircleCI Bot"
dependencies:
cache_directories:
- woff2
- node_modules
pre:
- sudo apt-get update
- sudo apt-get install g++
- "[[ ! -d woff2 ]] && ./Scripts/woff2.sh || echo 'Using cached woff2_compress'"
- "[[ ! -d node_modules ]] && npm install ttf2woff ttf2eot || echo 'Using cached ttf2woff'"
- docker pull colman/py-fontforge
post:
- . Scripts/cleanup-git.sh
test:
override:
- for file in ./Source/Monoid*.sfdir; do . Scripts/parallel_build.sh $file; done:
parallel: true
# Copy artifacts to keep after branch switch
# DANGER! Assumes node0 builds normal iterations :)
- cp _release/Monoid-{Regular,Italic,Bold}.ttf /tmp/
# Prepare the release
- . Scripts/prepare_release.sh:
parallel: true
# Collect all build products into node0
- "[ $CIRCLE_NODE_INDEX -eq 0 ] || scp *.zip node0:~/monoid/":
parallel: true
# Add, commit, push
- ls -lh ./*.zip
- git add -v ./*.zip
- git commit -m "Release build for ${CIRCLE_SHA1} [ci skip]"
- git push -f origin release
# Go-go-github pages
- . /tmp/gh-pages.sh