-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reshuffles the testing code to consolidate all CI-related setup into a single setup file. Removes the PDF comparison test since the output of wkhtmltopdf is not deterministic [1]. [1] wkhtmltopdf/wkhtmltopdf#4437
- Loading branch information
Showing
10 changed files
with
73 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
## | ||
## This script is for both Appveyor and Travis to configure and install required software to | ||
## get BHIMA up and running. | ||
## | ||
|
||
## mysql is installed by default on appveyor, so we can set mysql server charset as utf8mb4 | ||
echo -e " | ||
[client] | ||
default-character-set=utf8mb4 | ||
[mysql] | ||
default-character-set=utf8mb4 | ||
[mysqld] | ||
collation-server=utf8mb4_unicode_ci | ||
init-connect='SET NAMES utf8mb4' | ||
character-set-server=utf8mb4 | ||
sql-mode=\"STRICT_ALL_TABLES\" " | sudo tee -a /etc/mysql/conf.d/99_custom_ci.cnf | ||
|
||
## set database environment | ||
set -euo pipefail | ||
|
||
set -a | ||
source .env.development | ||
set +a | ||
|
||
# download and install wkhtmltopdf globally | ||
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | ||
tar -xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | ||
sudo mv ./wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf | ||
|
||
mkdir -p test/artifacts | ||
|
||
# restart mysql once chanes have been made | ||
sudo service mysql restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters