Update Travis CI scripts and config

This commit is contained in:
Glavin Wiechert 2016-05-14 13:53:15 -03:00
parent 6c360a0442
commit a7b6d2c2ce
2 changed files with 44 additions and 10 deletions

View File

@ -1,12 +1,3 @@
language: objective-c
osx_image: xcode7.3
sudo: false
git:
depth: 10
notifications: notifications:
webhooks: webhooks:
urls: urls:
@ -20,6 +11,15 @@ notifications:
script: sh build-package.sh script: sh build-package.sh
git:
depth: 10
sudo: false
os:
- linux
- osx
env: env:
global: global:
- APM_TEST_PACKAGES="language-marko language-html-swig language-svg language-d mavensmate-atom" - APM_TEST_PACKAGES="language-marko language-html-swig language-svg language-d mavensmate-atom"
@ -27,6 +27,14 @@ env:
- ATOM_CHANNEL=stable - ATOM_CHANNEL=stable
- ATOM_CHANNEL=beta - ATOM_CHANNEL=beta
addons:
apt:
packages:
- build-essential
- git
- libgnome-keyring-dev
- fakeroot
cache: cache:
- pip: true - pip: true
- bundler: true - bundler: true

View File

@ -72,6 +72,32 @@ if [ -f ./node_modules/.bin/coffeelint ]; then
fi fi
fi fi
if [ -f ./node_modules/.bin/eslint ]; then
if [ -d ./src ]; then
echo "Linting package..."
./node_modules/.bin/eslint src
rc=$?; if [ $rc -ne 0 ]; then exit $rc; fi
fi
if [ -d ./spec ]; then
echo "Linting package specs..."
./node_modules/.bin/eslint spec
rc=$?; if [ $rc -ne 0 ]; then exit $rc; fi
fi
fi
if [ -f ./node_modules/.bin/standard ]; then
if [ -d ./src ]; then
echo "Linting package..."
./node_modules/.bin/standard "src/**/*.js"
rc=$?; if [ $rc -ne 0 ]; then exit $rc; fi
fi
if [ -d ./spec ]; then
echo "Linting package specs..."
./node_modules/.bin/standard "spec/**/*.js"
rc=$?; if [ $rc -ne 0 ]; then exit $rc; fi
fi
fi
if [ -d ./spec ]; then if [ -d ./spec ]; then
echo "Running specs..." echo "Running specs..."
"$ATOM_SCRIPT_PATH" --test spec "$ATOM_SCRIPT_PATH" --test spec