-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
49 lines (45 loc) · 1.12 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
machine:
node:
version: 4.2.1
general:
branches:
ignore:
- gh-pages
- toc-dev
dependencies:
cache_directories:
# - "/var/lib/docker"
- "toc/app/dependencies"
- "~/nvm/versions/node/v4.2.1/lib/node_modules"
- "~/nvm/versions/node/v4.2.1/bin"
pre:
- >
if [ ! -e ~/nvm/versions/node/v4.2.1/bin/npm ] || \
[ ! -e ~/nvm/versions/node/v4.2.1/bin/gulp ] || \
[ ! -e ~/nvm/versions/node/v4.2.1/bin/http-server ] || \
[ ! -e ~/nvm/versions/node/v4.2.1/bin/jspm ] || \
[ ! -e ~/nvm/versions/node/v4.2.1/bin/ionic ];
then
/bin/bash scripts/toc-install-deps.sh
else
echo "Cached global dependencies exist. Skipping install."
fi
override:
- npm install
- npm rebuild node-sass
- npm rebuild optipng-bin
- jspm install
test:
override:
- echo "no tests =/"
deployment:
staging:
branch: /.*/
owner: lewisl9029
commands:
- /bin/bash scripts/toc-deploy-staging.sh
production:
tag: /v[0-9]+(\.[0-9]+)*/
owner: lewisl9029
commands:
- /bin/bash scripts/toc-deploy-production.sh