From b4b3930db348b0e134614b66a83a35e46a9bd0b8 Mon Sep 17 00:00:00 2001 From: Glavin Wiechert Date: Sun, 28 Dec 2014 14:30:36 -0400 Subject: [PATCH] See #18. Move Atom package dependencies into install script. --- .travis.yml | 24 +----------------------- build-package.sh | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 23 deletions(-) create mode 100644 build-package.sh diff --git a/.travis.yml b/.travis.yml index 8e695b1..cec6c68 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ notifications: on_success: never on_failure: change -script: 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh' +script: sh build-package.sh before_install: # Update Homebrew @@ -21,25 +21,3 @@ before_install: - brew install uncrustify # PHP # - pear install PHP_Beautifier-beta - - # Atom dependencies - - apm install language-c - - apm install language-coffee-script - - apm install language-css - - apm install language-html - - apm install language-java - - apm install language-javascript - - apm install language-json - - apm install language-less - - apm install language-mustache - - apm install language-objective-c - - apm install language-perl - - apm install language-php - - apm install language-python - - apm install language-ruby - - apm install language-sass - - apm install language-sql - - apm install language-typescript - - apm install language-xml - - apm install language-csharp - - apm install language-gfm diff --git a/build-package.sh b/build-package.sh new file mode 100644 index 0000000..eb134d1 --- /dev/null +++ b/build-package.sh @@ -0,0 +1,47 @@ +#!/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..." +curl -s -L "https://atom.io/download/mac" \ +-H 'Accept: application/octet-stream' \ +-o atom.zip + +mkdir atom +unzip -q atom.zip -d atom + +echo "Using Atom version:" +ATOM_PATH=./atom ./atom/Atom.app/Contents/Resources/app/atom.sh -v + +echo "Downloading package dependencies..." +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm update + +echo "Download package Atom dependencies..." +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 +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-css +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-html +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 language-javascript +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-json +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 +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-objective-c +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-perl +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-php +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-python +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-ruby +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-sass +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-sql +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-typescript +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-xml +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-csharp +atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install language-gfm + +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 + +exit