-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathcircle.yml
39 lines (39 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
machine:
timezone:
Europe/London
node:
version: v8.11.2
java:
version: openjdk8
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
general:
artifacts:
- tests/e2e/tests_output
- tests/e2e/tests_screenshots
dependencies:
override:
- yarn
cache_directories:
- browserstack
- node_modules
- ~/.cache/yarn
test:
override:
- yarn test:unit
- yarn test:func
# - yarn build
# - yarn test:e2e
deployment:
main:
branch: master
commands:
- wget "https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip"
- unzip BrowserStackLocal-linux-x64.zip
- ./BrowserStackLocal $BROWSERSTACK_KEY -force:
background: true
- "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
- git push [email protected]:react-lego-preprod.git $CIRCLE_SHA1:refs/heads/master -f --no-verify
# - yarn test:e2e-staging -- --sha=$CIRCLE_BUILD_NUM --target=http://react-lego-preprod.herokuapp.com --retries 2
- git push [email protected]:react-lego.git $CIRCLE_SHA1:refs/heads/master -f --no-verify
# - yarn test:e2e-production -- --sha=$CIRCLE_BUILD_NUM --target=http://react-lego.herokuapp.com --retries 2