forked from uswds/uswds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
33 lines (31 loc) · 1006 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
machine:
node:
version: 6
test:
pre:
- npm install -g codeclimate-test-reporter
# https://discuss.circleci.com/t/using-the-latest-version-of-chrome-on-circleci/871/4
- curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome.deb
- sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
- rm google-chrome.deb
override:
# Run the package and docs test suite
- npm test
# Run semantic version checks against the previous release
# - npm run cracks
# Generate code coverage report
- npm run cover
# Build the release files
- npm run build
post:
# Ensure that build:package worked
- ls -agolf dist/
- codeclimate-test-reporter < coverage/lcov.info
deployment:
npm:
branch: master
owner: 18F
commands:
- npm config set "//registry.npmjs.org/:_authToken=$NPM_TOKEN"
- npm publish