Skip to content

Commit

Permalink
Add a custom build script that includes pigments and minimap
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Jun 4, 2015
1 parent 0a6eb50 commit 38feaef
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ notifications:
env:
- APM_TEST_PACKAGES="pigments"

script: 'curl -s https://raw.githubusercontent.com/fundon/atom-minimap/master/ci/build-package.sh | sh'
script: 'curl -s https://raw.githubusercontent.com/abe33/minimap-pigments/master/ci/build-package.sh | sh'
28 changes: 28 additions & 0 deletions ci/build-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/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 "Downloading latest Minimap release..."
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install minimap

echo "Downloading latest Pigments release..."
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install pigments

echo "Downloading package dependencies..."
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install

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

0 comments on commit 38feaef

Please sign in to comment.