Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Removed osx and windows travis test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjosh committed Feb 12, 2018
1 parent 736b138 commit 6247a51
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 36 deletions.
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
os:
- osx
- linux
- windows

language: php
php:
- 7.1

cache:
directories:
- vendor
- $HOME/.composer/cache

php:
- 7.1

before_install:
- sh .travis/install.sh

Expand Down
42 changes: 14 additions & 28 deletions .travis/install.sh
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
#!/bin/bash

if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
# Install some custom requirements on Linux
if [ $(phantomjs --version) != '2.1.1' ]; then

# Install some custom requirements on OS X
brew update
echo "Installing phantomjs ...";

brew install phantomjs
rm -rf $PWD/travis_phantomjs;
mkdir -p $PWD/travis_phantomjs;
fi

phantomjs --version
if [ $(phantomjs --version) != '2.1.1' ]; then

elif [[ $TRAVIS_OS_NAME == 'linux' ]]; then
wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2;
fi

# Install some custom requirements on Linux
if [ $(phantomjs --version) != '2.1.1' ]; then
if [ $(phantomjs --version) != '2.1.1' ]; then

rm -rf $PWD/travis_phantomjs;
mkdir -p $PWD/travis_phantomjs;
fi
tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs;
fi

if [ $(phantomjs --version) != '2.1.1' ]; then
export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH

wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2;
fi

if [ $(phantomjs --version) != '2.1.1' ]; then

tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs;
fi

export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH

phantomjs --version

elif [[ $TRAVIS_OS_NAME == 'windows' ]]; then

echo "Ok dude! :||||"
fi
phantomjs --version

0 comments on commit 6247a51

Please sign in to comment.