Skip to content

Commit f97eff2

Browse files
committed
chore: get ci passing
1 parent fa80e06 commit f97eff2

File tree

6 files changed

+20
-28
lines changed

6 files changed

+20
-28
lines changed

.circleci/config.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ jobs:
1717
key: dependency-cache-{{ checksum "package-lock.json" }}
1818
paths:
1919
- ./node_modules
20-
node-v10-latest:
21-
docker:
22-
- image: rollupcabal/circleci-node-v10:latest
20+
node-v12-latest:
21+
machine: true
2322
steps:
2423
- checkout
2524
- restore_cache:
2625
key: dependency-cache-{{ checksum "package-lock.json" }}
2726
- run:
28-
name: Node Info
29-
command: node --version && npm --version
30-
- run:
31-
name: Workaround for GoogleChrome/puppeteer#290
32-
command: 'sh .circleci/setup-puppeteer.sh'
33-
- run:
34-
name: NPM Rebuild
35-
command: npm install
36-
- run:
37-
name: Run unit tests.
38-
command: sudo npm run ci:coverage
27+
name: Setup Node 12 and Run Tests
28+
command: |
29+
set +e
30+
touch $BASH_ENV
31+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
32+
export NVM_DIR="/opt/circleci/.nvm"
33+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
34+
nvm install 12
35+
nvm alias default 12
36+
node --version && npm --version
37+
npm install
38+
npm run ci:coverage
3939
- run:
4040
name: Submit coverage data to codecov.
4141
command: bash <(curl -s https://codecov.io/bash)
@@ -70,7 +70,7 @@ workflows:
7070
filters:
7171
tags:
7272
only: /.*/
73-
- node-v10-latest:
73+
- node-v12-latest:
7474
requires:
7575
- analysis
7676
filters:

.circleci/setup-puppeteer.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.11.0
1+
12

test/plugin.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ test('simple config', (t) => {
6565
const [, outputPath] = stdout.match(/written to (.+)\n?/);
6666
const [diskPath] = outputPath.match(/((.+)simpleconfig)/);
6767

68-
t.snapshot(outputPath);
69-
t.snapshot(diskPath);
68+
t.snapshot(outputPath.replace(/mnt|Volumes/, '[mount]'));
69+
t.snapshot(diskPath.replace(/mnt|Volumes/, '[mount]'));
7070
t.true(exists(join(outputPath, 'output.js')));
7171

7272
detatch(diskPath);

test/snapshots/plugin.test.js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Generated by [AVA](https://ava.li).
3636

3737
> Snapshot 1
3838
39-
'/Volumes/simpleconfig/output'
39+
'/[mount]/simpleconfig/output'
4040

4141
> Snapshot 2
4242
43-
'/Volumes/simpleconfig'
43+
'/[mount]/simpleconfig'

test/snapshots/plugin.test.js.snap

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)