-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
executable file
·61 lines (50 loc) · 3.39 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php
# list any PHP version you want to test against
php:
- 7.2.15
env:
- mysql
services:
- mysql
before_install:
- sudo apt-get update
- sudo apt-get -y install aptitude
- sudo apt-get -y install apache2 php-pear curl lynx-cur libreadline-dev libsqlite3-dev libbz2-dev libssl-dev python python-dev libmysqlclient-dev python-pip git expect default-jre libxml2-dev software-properties-common gdebi-core wget tree vim libv8-dev subversion g++ gcc gfortran zlib1g-dev libx11-dev xorg-dev libbz2-dev liblzma-dev libpcre3-dev libcurl4-openssl-dev
- sudo apt-get -y install python-software-properties
- sudo apt-get update
- sudo pip install mysql-connector
- git clone https://github.com/UMMS-Biocore/dolphinnext.git /home/travis/build/dolphinnext
- sudo sudo cp -r /home/travis/build/${TRAVIS_REPO_SLUG} /var/www/html/
- sudo chown -R ${APACHE_RUN_USER}:${APACHE_RUN_GROUP} /var/www
- sudo chmod -R g+w /var/www/html
before_script:
- sudo service apache2 restart
- sudo mysql -e "CREATE DATABASE biocorepipe;" -uroot
- printf "[Dolphinnext]\nDB=biocorepipe\nDBUSER=root\nDBPASS=\nDBHOST=localhost\nDBPORT=3306\nSSHPATH=/export/.dolphinnext/.ssh\nAMAZON=z176eG0i8gh4fake\nAMZPATH=/export/.dolphinnext/.amz\nSALT=123test\nPEPPER=456test\nMASTER=test\nVERIFY=verifytest\n[CONFIG]\nTIMEZONE=America/New_York\nRUNPATH=../tmp/logs\nTEMPPATH=../tmp\nAPI_URL=http://localhost/dolphinnext\nCENTRAL_API_URL=https://www.dolphinnext.com\nBASE_PATH=https://www.dolphinnext.com\nPUBWEB_URL=http://localhost:8080/dolphinnext/tmp/pub\nOCPU_URL=http://localhost\nDEBROWSER_URL=https://debrowser.umassmed.edu:444\nOCPU_PUBWEB_URL=http://localhost/dolphinnext/tmp/pub\nNEXTFLOW_VERSION=0.30.0\nLDAP_SERVER=test\nDN_STRING=test\nBIND_USER= SVCLinuxLDAPAuth\nBIND_PASS=test\[email protected]\nEMAIL_ADMIN= [email protected]\n[UICONFIG]\nSHOW_AMAZON_KEYS=false\nSHOW_SSH_KEYS=false\nSHOW_GROUPS=false\nCOMPANY_NAME=Biocore\nALLOW_SIGNUP=true\nALLOW_SIGNUPGOOGLE=true" > config/.sec
- cd db
- sudo mysql -u root biocorepipe < db_structure.sql
- sudo python ../scripts/updateDN.py
- cd ..
script:
# ajax
- phpunit unitTesting/ajax/ajaxquery_unittesting.php
after_script:
- mysql -e "show databases;" -uroot
- mysql -e "use biocorepipe; show tables;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM biocorepipe_save;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM parameter;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM process;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM process_group;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM pipeline_group;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM process_parameter;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM project;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM users;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM user_group;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM groups;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM input;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM project_input;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM project_pipeline;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM project_pipeline_input;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM profile_cluster;" -uroot
- mysql -e "use biocorepipe; SELECT * FROM profile_amazon;" -uroot