Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

fix the ci builds #498

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ build-shared: &build-shared
<<: *defaults
machine: true
macos:
xcode: '8.3.3'
xcode: '11.1.0'
steps:
- run:
# https://discuss.circleci.com/t/how-to-change-node-version-in-circleci-2-0/17455/4
name: Install node
command: |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 12.2.0
nvm alias default 12.2.0
nvm install 13.8.0
nvm alias default 13.8.0
# Adding to $BASH_ENV
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
Expand Down Expand Up @@ -114,9 +114,9 @@ jobs:
test-js-current:
<<: *node-test-shared
docker:
- image: circleci/node:12.2.0
- image: circleci/node:13.8.0
environment:
BUILD_NODE_VERSION: 12.2.0
BUILD_NODE_VERSION: 13.8.0

build-current:
<<: *build-shared
Expand Down
5 changes: 2 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parser": "babel-eslint",
"extends": [
"airbnb"
"eslint-config-airbnb-base"
],
"env": {
"jest": true
Expand All @@ -12,7 +12,6 @@
},
"plugins": [
"flowtype",
"import",
"babel"
],
"rules": {
Expand All @@ -39,7 +38,7 @@
}
],
"object-curly-newline": 0,
"babel/array-bracket-spacing": 2,
"array-bracket-spacing": 2,
"implicit-arrow-linebreak": 0,
"operator-linebreak": 0,
"import/no-cycle": 0,
Expand Down
4 changes: 2 additions & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[ignore]
# <PROJECT_ROOT>/node_modules/.*
<PROJECT_ROOT>/node_modules/module-deps
<PROJECT_ROOT>/target/.*
<PROJECT_ROOT>/LUMO__INTERNAL__CLASSPATH/.*
<PROJECT_ROOT>/tmp/.*
Expand All @@ -15,4 +15,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.98.0
^0.117.0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ target/
/build/
lumo-cache/
test-lumo-cache/
resources_bak/
.vagrant

third_party/*
Expand Down
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
sudo: required
dist: trusty
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
language: node_js
node_js:
- 12
- 13
# safelist
branches:
only:
Expand All @@ -17,11 +19,8 @@ cache:
directories:
- node_modules
- "~/.m2"
- tmp
- "~/.boot/cache/lib"
- "~/.boot/cache/bin"
- yarn
before_install:
- eval "${MATRIX_EVAL}"
- sudo fallocate -l 4G /swapfile
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
Expand Down Expand Up @@ -69,9 +68,9 @@ env:
-XX:+CMSClassUnloadingEnabled
-Xverify:none'
BUILD_ARCH=linux
- CC=gcc-6 && CXX=g++-6
- eval "${MATRIX_EVAL}"
matrix:
fast_finish: true
include:
- env:
- BUILD_NODE_VERSION=12.2.0
- BUILD_NODE_VERSION=13.8.0
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Changes

- Upgrade Node.js to version 12.2.0.
- Upgrade Node.js to version 13.8.0.

### Bug fixes

Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
image:
- Visual Studio 2017
environment:
nodejs_version: "11"
nodejs_version: "13"
appveyor_build_worker_cloud: gce
BUILD_ARCH: win
matrix:
- BUILD_NODE_VERSION: 12.2.0
- BUILD_NODE_VERSION: 13.8.0
platform:
- x64

Expand Down
2 changes: 1 addition & 1 deletion build.boot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"1.10.520"))

(def +node-version+ (or (System/getenv "BUILD_NODE_VERSION")
"12.2.0"))
"13.8.0"))

(def +build-static-binary+ (-> (System/getenv "BUILD_STATIC_BINARY") boolean str))

Expand Down
75 changes: 36 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,50 +37,47 @@
"postinstall": "node download/install.js || nodejs download/install.js"
},
"devDependencies": {
"@babel/core": "^7.1.5",
"@babel/plugin-external-helpers": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.1.5",
"@babel/preset-stage-2": "^7.0.0",
"@babel/runtime": "^7.1.5",
"async-retry": "^1.2.3",
"@babel/core": "^7.8.4",
"@babel/plugin-external-helpers": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/preset-stage-2": "^7.8.3",
"@babel/runtime": "^7.8.4",
"async-retry": "^1.3.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.8.0",
"babel-loader": "^8.0.4",
"babel-eslint": "^10.0.3",
"babel-jest": "^25.1.0",
"babel-loader": "^8.0.6",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"chalk": "^2.4.1",
"cross-env": "^5.2.0",
"chalk": "^3.0.0",
"cross-env": "^7.0.0",
"death": "^1.1.0",
"eslint": "^5.8.0",
"eslint-config-airbnb": "17.1.0",
"eslint-config-airbnb-base": "13.1.0",
"eslint-plugin-babel": "^5.2.1",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1",
"flow-bin": "0.98.1",
"google-closure-compiler-js": "20170910.0.1",
"jest-cli": "^24.7.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "14.0.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-flowtype": "^4.6.0",
"eslint-plugin-import": "^2.20.1",
"flow-bin": "0.117.0",
"google-closure-compiler": "^20200204.0.0",
"jest-cli": "^25.1.0",
"jszip": "github:anmonteiro/jszip#patch-1",
"nexe": "github:anmonteiro/nexe#anmonteiro-patch-1",
"node-fetch": "^2.2.1",
"paredit.js": "^0.3.4",
"nexe": "./vendor/nexe",
"node-fetch": "^2.6.0",
"paredit.js": "^0.3.6",
"posix-getopt": "github:anmonteiro/node-getopt#master",
"prettier": "^1.15.1",
"progress": "^2.0.0",
"read-pkg": "^5.1.1",
"rollup": "^1.9.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-babel-minify": "^8.0.0",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-node-resolve": "^5.0.0",
"rollup-plugin-replace": "^2.1.1",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2",
"prettier": "^1.19.1",
"progress": "^2.0.3",
"read-pkg": "^5.2.0",
"rollup": "^1.31.1",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-babel-minify": "^9.1.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11",
"which-promise": "^1.0.0"
},
"jest": {
Expand Down
2 changes: 2 additions & 0 deletions scripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ if (!isDevBuild) {
comments: false,
removeConsole: true,
removeDebugger: true,
evaluate: false,
mangle: false,
}),
);
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/bundleForeign.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const replace = require('rollup-plugin-replace');
const commonjs = require('rollup-plugin-commonjs');

rollup({
input: 'node_modules/google-closure-compiler-js/compile.js',
input: 'node_modules/google-closure-compiler/lib/node/closure-compiler-js.js',
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify('production'),
Expand Down
24 changes: 7 additions & 17 deletions scripts/package.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const async = require('async');
const nexe = require('../vendor/nexe');
const monkeyPatch = require('../vendor/nexe/monkeypatch');
const fs = require('fs');
Expand Down Expand Up @@ -65,11 +64,7 @@ Promise.all(resources.map(deflate)).then(() => {
'--without-etw',
'--with-snapshot',
].concat(
isWindows
? ['--openssl-no-asm']
: staticBinary
? ['--fully-static']
: [],
isWindows ? ['--openssl-no-asm'] : staticBinary ? ['--fully-static'] : [],
),
nodeMakeArgs: ['-j', '8'],
nodeVCBuildArgs: ['nosign', 'x64', 'noetw'],
Expand All @@ -82,15 +77,10 @@ Promise.all(resources.map(deflate)).then(() => {

console.dir(options);

nexe.compile(
options,
err => {
if (err) {
throw err;
}
console.log(
`Finished bundling. Nexe binary can be found in ${outputPath}`,
);
},
);
nexe.compile(options, err => {
if (err) {
throw err;
}
console.log(`Finished bundling. Nexe binary can be found in ${outputPath}`);
});
});
5 changes: 2 additions & 3 deletions src/js/cljs.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function lumoEval(
if (execPath != null) {
const filename = path.resolve(execPath);
const dirname = path.dirname(filename);
// $FlowFixMe: strangely, module 'module' isn't built-in
const module = new Module(filename);

module.filename = filename;
Expand Down Expand Up @@ -490,9 +491,7 @@ async function initSocketRepl(
// versions and jest does not allow yet to specify the snapshot name at runtime.
// It's been worked on though, see:
// https://github.com/facebook/jest/pull/5838#issuecomment-382476612
const errorMsg = `Port should be > 0 and < 65536. Received ${
parsedOpts.port
}.`;
const errorMsg = `Port should be > 0 and < 65536. Received ${parsedOpts.port}.`;
if (Number.isNaN(replOpts.port)) {
throw new Error(errorMsg);
} else if (replOpts.port < 1 || replOpts.port > 65536) {
Expand Down
1 change: 1 addition & 0 deletions vendor/nexe/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
Loading