Skip to content

Commit 8f02e0e

Browse files
committed
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2 parents 920708f + 50abb87 commit 8f02e0e

File tree

725 files changed

+12236
-4275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

725 files changed

+12236
-4275
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ app/config/local/session.php
2727
.couscous
2828
tests/_support/_generated/*
2929
tests/_data/scenarios
30+
nbproject/*
31+
app/config/local/ldap.php
32+
app/storage/dumps/*
33+
app/config/packages/schickling/backup/config.php
34+
app/config/app.backup.php

.travis.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
addons:
22
hosts:
3-
- snipe-it.dev
3+
- localhost
44
sudo: false
55

66
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
@@ -14,27 +14,30 @@ php:
1414

1515
# optionally specify a list of environments, for example to test different RDBMS
1616
env:
17-
- DB=mysql
17+
- DB=mysql APP_ENV=travis-ci
1818

1919
# execute any number of scripts before the test run, custom env's are available as variables
2020
before_script:
21+
- hostname
2122
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS snipeit_unit;" -utravis; fi
2223
- curl -s http://getcomposer.org/installer | php
23-
- cp app/config/testing/app.example.php app/config/testing/app.php
24-
- cp app/config/testing/database.example.php app/config/testing/database.php
25-
- cp app/config/testing/mail.example.php app/config/testing/mail.php
24+
- cp app/config/travis-ci/app.example.php app/config/travis-ci/app.php
25+
- cp app/config/travis-ci/database.example.php app/config/travis-ci/database.php
26+
- cp app/config/travis-ci/mail.example.php app/config/travis-ci/mail.php
2627
- composer self-update
2728
- composer install --prefer-source --no-interaction
28-
- php artisan key:generate --env=testing
29-
- php artisan migrate:install --env=testing --no-interaction -vvv
30-
- php artisan migrate --package cartalyst/sentry --env=testing --no-interaction -vvv
31-
- php artisan migrate --env=testing --no-interaction -vvv
32-
- php artisan db:seed --env=testing --no-interaction -vvv
29+
- php artisan key:generate
30+
- php artisan migrate:install --no-interaction -vvv
31+
- php artisan migrate --package cartalyst/sentry --no-interaction -vvv
32+
- php artisan migrate --no-interaction -vvv
33+
- php artisan db:seed --no-interaction -vvv
34+
- ./vendor/bin/codecept build
35+
- APP_ENV=travis-ci php artisan serve --port=8007 &
36+
- sleep 5
3337

3438
# omitting "script:" will default to phpunit
3539
# use the $DB env variable to determine the phpunit.xml to use
36-
# script: ./vendor/bin/codecept run
37-
script: phpunit
40+
script: ./vendor/bin/codecept run --env travis-ci -vvv
3841

3942
# configure notifications (email, IRC, campfire etc)
4043
notifications:

Dockerfile

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ MAINTAINER Brady Wetherington <[email protected]>
44
RUN apt-get update && apt-get install -y \
55
apache2-bin \
66
libapache2-mod-php5 \
7+
php5-curl \
8+
php5-ldap \
79
php5-mysql \
810
php5-mcrypt \
911
php5-gd \
@@ -31,36 +33,13 @@ RUN a2enmod rewrite
3133

3234
############ INITIAL APPLICATION SETUP #####################
3335

34-
COPY docker/app_start.patch /tmp/app_start.patch
35-
3636
WORKDIR /var/www/html
3737

38-
#Patch bootstrap file
39-
RUN patch -p1 < /tmp/app_start.patch
40-
41-
#DB create?
42-
# mysqladmin -u root create snipeit_laravel
43-
44-
#DB create user, grant access to new DB?
45-
# grant all privileges on snipeit_laravel.* TO snipeit;
46-
47-
#DB config file init? (NEVER overwrite!)
48-
#RUN cp -n /var/www/html/app/config/production/database.example.php /var/www/html/app/config/production/database.php
49-
COPY docker/database.php /var/www/html/app/config/production/database.php
50-
51-
COPY docker/mail.php /var/www/html/app/config/production/mail.php
52-
53-
#change DB file user
54-
#RUN sed -i s/travis/snipe_it/ /var/www/html/app/config/production/database.php
55-
56-
#init app config file (DO NOT overwrite!)
57-
RUN cp -n /var/www/html/app/config/production/app.example.php /var/www/html/app/config/production/app.php
58-
59-
# Change default hostname to blank...I guess?
60-
RUN sed -i s%http://staging.yourserver.com%% /var/www/html/app/config/production/app.php
38+
#Append to bootstrap file (less brittle than 'patch')
39+
RUN sed -i 's/return $app;/$env="production";\nreturn $app;/' bootstrap/start.php
6140

62-
# turn off the toolbar
63-
RUN sed -i 's%\x27debug\x27 => true%\x27debug\x27 => false%' /var/www/html/app/config/production/app.php
41+
#copy all configuration files
42+
COPY docker/*.php /var/www/html/app/config/production/
6443

6544
RUN chown -R docker /var/www/html
6645

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is a FOSS project for asset management in IT Operations. Knowing who has wh
99

1010
It is built on [Laravel 4.2](http://laravel.com) and uses the [Sentry 2](https://github.com/cartalyst/sentry) package.
1111

12-
This project is being actively developed and we're [releasing quite frequently](https://github.com/snipe/snipe-it/releases). ([Check out the live demo here](http://snipeitapp.com/demo/).)
12+
This project is being actively developed and we're [releasing quite frequently](https://github.com/snipe/snipe-it/releases). ([Check out the live demo here](https://snipeitapp.com/demo/).)
1313

1414
__This is web-based software__. This means there there is no executable file (aka no .exe files), and it must be run on a web server and accessed through a web browser. It runs on any Mac OSX, flavor of Linux, as well as Windows.
1515

@@ -25,6 +25,8 @@ Please see the [requirements documentation](http://docs.snipeitapp.com/requireme
2525

2626
To deploy on Ubuntu using Ansible and Vagrant, check out the [Snipe-IT Installation scripts](https://github.com/GR360RY/snipeit-ansible) created by [@GR360RY](https://github.com/GR360RY/).
2727

28+
To deploy on a fresh Ubuntu / CentOS install that will be dedicated to Snipe-It, run the "install.sh". Make sure to chmod +x install.sh and run as sudo on Ubuntu systems (or equivalent on CentOS.)
29+
2830
-----
2931
### Bug Reports & Feature Requests
3032

0 commit comments

Comments
 (0)