mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Linking to PhantomJS installed on PATH
This commit is contained in:
13
.travis.yml
13
.travis.yml
@@ -1,6 +1,9 @@
|
||||
language: ruby
|
||||
sudo: false
|
||||
cache: bundler
|
||||
cache:
|
||||
- bundler
|
||||
- directories:
|
||||
- travis-phantomjs
|
||||
bundler_args: --without development
|
||||
rvm:
|
||||
- "2.1.5"
|
||||
@@ -23,12 +26,18 @@ env:
|
||||
- CI_NODE_INDEX=4 KARMA="true" GITHUB_DEPLOY="true"
|
||||
|
||||
before_script:
|
||||
- mkdir travis-phantomjs || true
|
||||
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
||||
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
|
||||
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
|
||||
|
||||
- cp config/database.travis.yml config/database.yml
|
||||
- cp config/application.yml.example config/application.yml
|
||||
- RAILS_ENV=test bundle exec rake db:create db:schema:load
|
||||
|
||||
- >
|
||||
if [ "$KARMA" = "true" ]; then
|
||||
npm install -g npm@'~3.8.8'
|
||||
npm install -g npm@'3.8.8'
|
||||
npm install
|
||||
npm install -g karma-cli@0.1.2
|
||||
fi
|
||||
|
||||
2022
npm-shrinkwrap.json
generated
2022
npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
@@ -6,6 +6,7 @@
|
||||
"url": "https://github.com/openfoodfoundation/openfoodnetwork"
|
||||
},
|
||||
"devDependencies": {
|
||||
"phantomjs-prebuilt": "~2.1.7",
|
||||
"karma": "~0.13.22",
|
||||
"karma-jasmine": "~0.3.8",
|
||||
"jasmine-core": "~2.4.1",
|
||||
|
||||
Reference in New Issue
Block a user