forked from facebookarchive/nuclide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
51 lines (47 loc) · 1.21 KB
/
circle.yml
File metadata and controls
51 lines (47 loc) · 1.21 KB
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
machine:
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
# The prettier ESLint plugin is problematic in Node v7.
ESLINT_NODE_VERSION: "9.11.1"
node:
version: 7.9.0
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
# Do not run tests for releases.
- |
# eslint
if [[ "$CIRCLE_BRANCH" != "release-v"* && -z "$CIRCLE_TAG" ]]; then
nvm install "$ESLINT_NODE_VERSION"
node -v
./node_modules/.bin/eslint --max-warnings=0 .
# Restore default node version.
nvm use 7.9.0
fi
- |
# flow
if [[ "$CIRCLE_BRANCH" != "release-v"* && -z "$CIRCLE_TAG" ]]; 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
modules:
tag: /modules-v.*/
owner: facebook
commands:
- bash -x ./scripts/modules-publish.sh
experimental:
notify:
branches:
only:
- master
- /^release-v[0-9]+\.[0-9]+\.[0-9]+$/