Skip to content

Commit 5d03c80

Browse files
committed
Migrating to CircleCI 2.0
1 parent 771c347 commit 5d03c80

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:8-browsers
6+
7+
working_directory: ~/gtm-js
8+
9+
environment:
10+
- YARN_VERSION: 1.7.0
11+
12+
steps:
13+
- checkout
14+
- run: export PATH="${PATH}:/home/circleci/.yarn/bin"
15+
- run:
16+
name: Install Yarn
17+
command: |
18+
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
19+
echo "Download and install Yarn."
20+
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
21+
else
22+
echo "The correct version of Yarn is already installed."
23+
fi
24+
- run: yarn
25+
- run: yarn test
26+
27+
notify:
28+
webhooks:
29+
- url: https://muster.intercom.io/circle_webhooks

0 commit comments

Comments
 (0)