Update Travis CI build script.

This commit is contained in:
Glavin Wiechert 2015-02-08 22:10:46 -04:00
parent c916f51650
commit df4d987072
2 changed files with 29 additions and 29 deletions

View File

@ -13,6 +13,9 @@ notifications:
script: sh build-package.sh script: sh build-package.sh
env:
- APM_TEST_PACKAGES="language-typescript language-csharp"
before_install: before_install:
# Update Homebrew # Update Homebrew
- brew update - brew update

View File

@ -1,45 +1,42 @@
#!/bin/sh #!/bin/sh
echo "Downloading node v0.10.22..."
curl -s -O http://nodejs.org/dist/v0.10.22/node-v0.10.22-darwin-x64.tar.gz
tar -zxf node-v0.10.22-darwin-x64.tar.gz
export PATH=$PATH:$PWD/node-v0.10.22-darwin-x64/bin
echo "Downloading latest Atom release..." echo "Downloading latest Atom release..."
curl -s -L "https://atom.io/download/mac" \ curl -s -L "https://atom.io/download/mac" \
-H 'Accept: application/octet-stream' \ -H 'Accept: application/octet-stream' \
-o atom.zip -o atom.zip
mkdir atom mkdir atom
unzip -q atom.zip -d atom unzip -q atom.zip -d atom
export PATH=$PWD/atom/Atom.app/Contents/Resources/app/apm/bin:$PATH
echo "Using Atom version:" echo "Using Atom version:"
ATOM_PATH=./atom ./atom/Atom.app/Contents/Resources/app/atom.sh -v ATOM_PATH=./atom ./atom/Atom.app/Contents/Resources/app/atom.sh -v
echo "Downloading package dependencies..." echo "Downloading package dependencies..."
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm update atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm clean
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install
echo "Download package Atom dependencies..." TEST_PACKAGES="${APM_TEST_PACKAGES:=none}"
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-c
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-coffee-script if [ "$TEST_PACKAGES" != "none" ]; then
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-css echo "Installing atom package dependencies..."
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-html for pack in $TEST_PACKAGES ; do
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-java atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install $pack
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-javascript done
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-json fi
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-less
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-mustache if [ -f ./node_modules/.bin/coffeelint ]; then
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-objective-c if [ -d ./lib ]; then
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-perl echo "Linting package..."
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-php ./node_modules/.bin/coffeelint lib
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-python rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-ruby fi
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-sass if [ -d ./spec ]; then
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-sql echo "Linting package specs..."
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-xml ./node_modules/.bin/coffeelint spec
# atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-gfm rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-typescript fi
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-csharp fi
echo "Running specs..." echo "Running specs..."
ATOM_PATH=./atom atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm test --path atom/Atom.app/Contents/Resources/app/atom.sh ATOM_PATH=./atom atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm test --path atom/Atom.app/Contents/Resources/app/atom.sh