diff --git a/.travis.yml b/.travis.yml index 080fd8fb..d3199fb7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,7 +31,7 @@ jobs: - cd ../scripts - sudo service mysql stop script: - - ./SetupEnvAndRunPHPUnitTests.sh $DEV_COMMUNITY_USERNAME $DEV_COMMUNITY_PASSWORD $SUGAR_VERSION $SUGAR_EDITION $GIT_HUB_USERNAME $GIT_HUB_PASSWORD workspace/sugardocker + - ./SetupEnvAndRunPHPUnitTests.sh $DEV_COMMUNITY_USERNAME $DEV_COMMUNITY_PASSWORD $SUGAR_VERSION $SUGAR_EDITION $GITHUB_USERNAME $GITHUB_PASSWORD workspace/sugardocker - stage: Run PHPUnit sudo: required language: php @@ -47,7 +47,7 @@ jobs: - cd ../scripts - sudo service mysql stop script: - - ./SetupEnvAndRunPHPUnitTests.sh $DEV_COMMUNITY_USERNAME $DEV_COMMUNITY_PASSWORD $SUGAR_VERSION $SUGAR_EDITION $GIT_HUB_USERNAME $GIT_HUB_PASSWORD workspace/sugardocker + - ./SetupEnvAndRunPHPUnitTests.sh $DEV_COMMUNITY_USERNAME $DEV_COMMUNITY_PASSWORD $SUGAR_VERSION $SUGAR_EDITION $GITHUB_USERNAME $GITHUB_PASSWORD workspace/sugardocker - stage: Run PHPUnit sudo: required language: php @@ -63,7 +63,7 @@ jobs: - cd ../scripts - sudo service mysql stop script: - - ./SetupEnvAndRunPHPUnitTests.sh $DEV_COMMUNITY_USERNAME $DEV_COMMUNITY_PASSWORD $SUGAR_VERSION $SUGAR_EDITION $GIT_HUB_USERNAME $GIT_HUB_PASSWORD workspace/sugardocker + - ./SetupEnvAndRunPHPUnitTests.sh $DEV_COMMUNITY_USERNAME $DEV_COMMUNITY_PASSWORD $SUGAR_VERSION $SUGAR_EDITION $GITHUB_USERNAME $GITHUB_PASSWORD workspace/sugardocker - stage: Build & Post on GitHub language: php php: '7.1' diff --git a/README.md b/README.md index 2cca0d73..b95591ee 100755 --- a/README.md +++ b/README.md @@ -178,8 +178,8 @@ The build has four Environment Variables that have been configured in the projec - DEV_COMMUNITY_USERNAME: The username for an account that has access to the [SugarCRM Developer Builds Space](https://community.sugarcrm.com/community/developer/developer-builds) - DEV_COMMUNITY_PASSWORD: The password associated with the above account -- GIT_HUB_USERNAME: The username for a GitHub account that has access to https://github.com/sugarcrm/unit-tests -- GIT_HUB_PASSWORD: The password associated with the above account +- GITHUB_USERNAME: The username for a GitHub account that has access to https://github.com/sugarcrm/unit-tests +- GITHUB_PASSWORD: The password associated with the above account ![Travis CI Environment Variables](images/travisenvvars.png) @@ -300,8 +300,8 @@ and manually trigger the builds instead. 1. In the **Build Environment** section, select the **Delete workspace before build starts** option and the **Use secret text(s) or file(s)** option. 1. In the **Bindings** section, select **Add** > **Username and password (separated)**. Then input the following: - 1. Username Variable: `GIT_HUB_USERNAME` - 1. Password Variable: `GIT_HUB_PASSWORD` + 1. Username Variable: `GITHUB_USERNAME` + 1. Password Variable: `GITHUB_PASSWORD` 1. Credentials: **Specific credentials** 1. Select the GITHUB_SUGARCRM_UNIT_TESTS credentials. 1. In the **Bindings** section, select **Add** > **Username and password (separated)**. Then input the following: @@ -338,7 +338,7 @@ text(s) or file(s)** option. bash -ex RunPackUnitTestsAndBuildProfMPackage.sh $SUGAR_WORKSPACE_PATH - bash SetupEnvAndRunPHPUnitTests.sh $DEV_COMMUNITY_USERNAME $DEV_COMMUNITY_PASSWORD $SUGAR_VERSION $SUGAR_EDITION $GIT_HUB_USERNAME $GIT_HUB_PASSWORD $SUGAR_DOCKER_DIRECTORY $SUGAR_SOURCE_ZIPS_DIRECTORY + bash SetupEnvAndRunPHPUnitTests.sh $DEV_COMMUNITY_USERNAME $DEV_COMMUNITY_PASSWORD $SUGAR_VERSION $SUGAR_EDITION $GITHUB_USERNAME $GITHUB_PASSWORD $SUGAR_DOCKER_DIRECTORY $SUGAR_SOURCE_ZIPS_DIRECTORY ``` Be sure to update the variables appropriately. 1. In the **Post-build Actions** section, click **Add post-build action** and select **Archive the artifacts**. diff --git a/images/travisenvvars.png b/images/travisenvvars.png index ca9dfe9e..af6eb00d 100644 Binary files a/images/travisenvvars.png and b/images/travisenvvars.png differ diff --git a/scripts/InstallSugarAndProfM.sh b/scripts/InstallSugarAndProfM.sh index 513d8894..ae3ca520 100755 --- a/scripts/InstallSugarAndProfM.sh +++ b/scripts/InstallSugarAndProfM.sh @@ -47,7 +47,6 @@ sudo chmod -R 777 $sugarDirectory -q echo "Installing Sugar..." # Install Sugar using the configs in config_si.php docker exec sugar-web1 php cliSilentInstall.php -echo "Finished installing Sugar." ###################################################################### @@ -56,4 +55,3 @@ echo "Finished installing Sugar." echo "Installing the Professor M module loadable package..." docker exec sugar-web1 php cliModuleInstall.php -i . -z sugarcrm-ProfessorM-standard.zip -echo "Finished installing the Professor M module loadable package." diff --git a/scripts/config_override.php b/scripts/config_override.php index 2de20d1b..bf714e05 100755 --- a/scripts/config_override.php +++ b/scripts/config_override.php @@ -1,29 +1,3 @@ 'sugar-mysql', + 'setup_db_database_name' => 'sugar', + 'setup_db_drop_tables' => 1, + 'setup_db_create_database' => 1, + 'demoData' => 0, + 'developerMode' => 1, + 'setup_site_admin_user_name' => 'admin', + 'setup_site_admin_password' => 'sugarcrm', + 'setup_db_admin_user_name' => 'root', + 'setup_db_admin_password' => 'root', + 'setup_db_type' => 'mysql', + 'setup_site_url' => 'http://sugar-web1/sugar', + 'setup_system_name' => 'SugarCRM', 'default_currency_iso4217' => 'USD', 'default_currency_name' => 'US Dollars', 'default_currency_significant_digits' => '2', 'default_currency_symbol' => '$', 'default_date_format' => 'Y-m-d', + 'default_time_format' => 'H:i', 'default_decimal_seperator' => '.', 'default_export_charset' => 'ISO-8859-1', 'default_language' => 'en_us', 'default_locale_name_format' => 's f l', 'default_number_grouping_seperator' => ',', - 'default_time_format' => 'H:i', - 'demoData' => 0, 'export_delimiter' => ',', - 'setup_db_admin_user_name' => 'root', - 'setup_db_admin_password' => 'root', - 'setup_db_create_database' => 1, - 'setup_db_create_sugarsales_user' => 0, - 'setup_db_database_name' => 'sugar', - 'setup_db_drop_tables' => 1, - 'setup_db_host_name' => 'sugar-mysql', - 'setup_db_type' => 'mysql', + 'setup_fts_type' => 'Elastic', 'setup_fts_host' => 'sugar-elasticsearch', 'setup_fts_port' => '9200', - 'setup_fts_type' => 'Elastic', - 'setup_license_key_expire_date' => '2017-03-18', - 'setup_license_key_oc_licences' => 0, - 'setup_license_key_users' => 10, - 'setup_num_lic_oc' => 0, - 'setup_site_admin_password' => 'sugarcrm', - 'setup_site_admin_user_name' => 'admin', - 'setup_site_sugarbeet_automatic_checks' => false, - 'setup_site_url' => 'http://sugar-web1/sugar', - 'setup_system_name' => 'Sugar', );