From 6bb8b4c5e4eb961e4798d255e4fa5b964dddc2a2 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 6 Jan 2016 10:36:27 -0800 Subject: [PATCH] Build on both mac and linux on travis --- .travis.yml | 24 +++++++++++++++++++++--- spec/spellchecker-spec.coffee | 2 ++ 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 20cfe51..cd1509b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,23 @@ -language: objective-c - notifications: email: on_success: never on_failure: change -script: 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh' +os: + - linux + - osx + +install: + - rm -rf ~/.nvm + - git clone https://github.com/creationix/nvm.git ~/.nvm + - source ~/.nvm/nvm.sh + - nvm install $NODE_VERSION + - node --version + - npm install + +script: npm test + +sudo: false git: depth: 10 @@ -13,3 +25,9 @@ git: branches: only: - master + +env: + global: + - CC=clang CXX=clang++ npm_config_clang=1 + matrix: + - NODE_VERSION=node diff --git a/spec/spellchecker-spec.coffee b/spec/spellchecker-spec.coffee index 6382fa2..76664a4 100644 --- a/spec/spellchecker-spec.coffee +++ b/spec/spellchecker-spec.coffee @@ -35,6 +35,8 @@ describe "SpellChecker", -> expect(errorOccurred).toBe true describe ".getAvailableDictionaries()", -> + return if process.platform is 'linux' + it "returns an array of string dictionary names", -> dictionaries = SpellChecker.getAvailableDictionaries() expect(Array.isArray(dictionaries)).toBe true