forked from facebookarchive/nuclide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
40 lines (36 loc) · 871 Bytes
/
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
machine:
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 7.4.0
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
# Do not run tests for releases.
- |
# eslint
if [[ "$CIRCLE_BRANCH" != "release-v"* ]]; then
./node_modules/.bin/eslint --max-warnings=0 .
fi
- |
# flow
if [[ "$CIRCLE_BRANCH" != "release-v"* ]]; then
sed -i.tmp -e 's/^; \(suppress_comment=.*FlowFB.*\)$/\1/' .flowconfig
./node_modules/.bin/flow check --show-all-errors
fi
deployment:
release:
branch: /^release-v[0-9]+\.[0-9]+\.[0-9]+$/
owner: facebook
commands:
- ./scripts/oss-publish.sh
experimental:
notify:
branches:
only:
- master
- /^release-v[0-9]+\.[0-9]+\.[0-9]+$/