-
Notifications
You must be signed in to change notification settings - Fork 2
/
circle.yml
44 lines (40 loc) · 1.19 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
general:
artifacts:
- 'npm-debug.log'
machine:
ruby:
version: '2.2'
node:
version: '8.11'
environment:
MOCHA_REPORTER: spec
dependencies:
pre:
- uname -a && . /etc/lsb-release && echo $DISTRIB_DESCRIPTION
- npm i -g npm@^5
- npm -v
- npm i -g yarn@~1.6 # https://github.com/yarnpkg/yarn/issues/5876
- rm -rf ~/.yarn
override:
- bundle install
- yarn install --pure-lockfile
post:
# Chrome 53 / Karma issue
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get install -y google-chrome-unstable
- sudo apt-get install -y --only-upgrade google-chrome-stable
test:
pre:
- npm run lint
post:
- npm run codecov
- npm run test-mocha-junit
deployment:
master:
branch: master
commands:
- cp .npmrc.ci .npmrc
- npm info || echo "no published package yet"
- npm run deploy