Force locale previous of tests (GitLab CI).

This commit is contained in:
Roberto Rosario
2016-10-25 19:05:24 -04:00
parent d779676724
commit 7ead59a408

View File

@@ -3,7 +3,6 @@ services:
- mysql:latest - mysql:latest
- postgres - postgres
before_script: before_script:
- export LANG=en_US.UTF-8
- apt-get update -qq - apt-get update -qq
- apt-get install -qq python-dev python-pip gcc gnupg1 tesseract-ocr tesseract-ocr-deu ghostscript libjpeg-dev libpng-dev libtiff-dev poppler-utils libreoffice - apt-get install -qq python-dev python-pip gcc gnupg1 tesseract-ocr tesseract-ocr-deu ghostscript libjpeg-dev libpng-dev libtiff-dev poppler-utils libreoffice
variables: variables:
@@ -18,7 +17,7 @@ test:mysql:
- pip install mysql-python - pip install mysql-python
- apt-get install -qq mysql-client - apt-get install -qq mysql-client
- mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" -e "ALTER DATABASE $MYSQL_DATABASE CHARACTER SET utf8 COLLATE utf8_unicode_ci;" - mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" -e "ALTER DATABASE $MYSQL_DATABASE CHARACTER SET utf8 COLLATE utf8_unicode_ci;"
- coverage run manage.py runtests --settings=mayan.settings.testing.gitlab-ci.db_mysql --nomigrations - LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 coverage run manage.py runtests --settings=mayan.settings.testing.gitlab-ci.db_mysql --nomigrations
- bash <(curl https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t $CODECOV_TOKEN - bash <(curl https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t $CODECOV_TOKEN
tags: tags:
- mysql - mysql
@@ -27,12 +26,12 @@ test:postgres:
- apt-get install -qq libpq-dev - apt-get install -qq libpq-dev
- pip install -r requirements/testing.txt - pip install -r requirements/testing.txt
- pip install psycopg2 - pip install psycopg2
- coverage run manage.py runtests --settings=mayan.settings.testing.gitlab-ci.db_postgres --nomigrations - LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 coverage run manage.py runtests --settings=mayan.settings.testing.gitlab-ci.db_postgres --nomigrations
- bash <(curl https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t $CODECOV_TOKEN - bash <(curl https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t $CODECOV_TOKEN
tags: tags:
- postgres - postgres
test:sqlite: test:sqlite:
script: script:
- pip install -r requirements/testing.txt - pip install -r requirements/testing.txt
- coverage run manage.py runtests --settings=mayan.settings.testing.gitlab-ci --nomigrations - LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 coverage run manage.py runtests --settings=mayan.settings.testing.gitlab-ci --nomigrations
- bash <(curl https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t $CODECOV_TOKEN - bash <(curl https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t $CODECOV_TOKEN