Skip to content

Commit 11f9416

Browse files
committed
Force reinstall node_modules in .travis.yml
- Add env variables for OSX build - Run khaiii/utagger test in supported platforms
1 parent 39fa1ac commit 11f9416

File tree

3 files changed

+36
-2002
lines changed

3 files changed

+36
-2002
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ matrix:
2525
- node -v
2626
env:
2727
- LDFLAGS="${LDFLAGS} -L$(brew --prefix zlib)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix openssl)/lib"
28-
- CPPFLAGS="${CPPFLAGS} -I$(brew --prefix zlib)/include -I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/include"
28+
- CPPFLAGS="${CPPFLAGS} -I$(brew --prefix zlib)/include -I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/include -I${JAVA_HOME}/include/darwin/"
2929
- PKG_CONFIG_PATH="${PKG_CONFIG_PATH} $(brew --prefix zlib)/lib/pkgconfig"
30+
- DYLD_INSERT_LIBRARIES=${JAVA_HOME}/lib/server/libjvm.dylib
3031
- name: "Ubuntu Focal with OpenJDK 11 (LTS)"
3132
dist: focal
3233
jdk: openjdk11
@@ -43,7 +44,7 @@ script:
4344
after_success:
4445
- if [ $TRAVIS_OS_NAME == 'linux' ]; then ./node_modules/.bin/codecov; fi
4546
install:
46-
- yarn install
47+
- yarn install --verbose --force
4748
# - bash ./scripts/khaiii_install.sh
4849
# - bash ./scripts/utagger_install.sh
4950
env:

test/execute.all.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
jest.setTimeout(5000000);
2+
import {platform} from 'process';
23
import {initialize} from '../src/Util';
34
import dictest from './dictionary';
45
import typetest from './type';
@@ -35,5 +36,7 @@ typetest();
3536
exttest();
3637
proctest();
3738
datatest();
38-
// khaiiitest();
39-
// utaggertest();
39+
40+
const platformType = platform()
41+
if (platformType === 'linux' || platformType === 'darwin') khaiiitest();
42+
if (platformType === 'win32') utaggertest();

0 commit comments

Comments
 (0)