1 | # Copyright 2015, Google, Inc.
|
2 | # Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
3 | # this file except in compliance with the License. You may obtain a copy of the
|
4 | # License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable
|
5 | # law or agreed to in writing, software distributed under the License is distributed
|
6 | # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
7 | # or implied. See the License for the specific language governing permissions and
|
8 | # limitations under the License.
|
9 |
|
10 | # Use http://yaml-online-parser.appspot.com to confirm that this file has the right format
|
11 |
|
12 | version: 2
|
13 | jobs:
|
14 | test:
|
15 | machine:
|
16 | node:
|
17 | version: 10.4.0
|
18 | steps:
|
19 | - checkout
|
20 | - run:
|
21 | name: Run tests
|
22 | command: |
|
23 | export NVM_DIR="/opt/circleci/.nvm"
|
24 | [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
25 | nvm install 10.4.0 && nvm alias default 10.4.0
|
26 | npm install
|
27 | npm test
|
28 | workflows:
|
29 | version: 2
|
30 | testsonly:
|
31 | jobs:
|
32 | - test
|