mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	Compile translation files on install
Solution based on https://stackoverflow.com/questions/40051076/compile-translation-files-when-calling-setup-py-install
This commit is contained in:
		
							parent
							
								
									dccfc2f712
								
							
						
					
					
						commit
						23a4135ccd
					
				
					 3 changed files with 41 additions and 24 deletions
				
			
		| 
						 | 
				
			
			@ -130,9 +130,9 @@ ubuntu_bionic_pip:
 | 
			
		|||
    # setup venv to act as release build machine
 | 
			
		||||
    - python -m venv sdist-env
 | 
			
		||||
    - . sdist-env/bin/activate
 | 
			
		||||
    - ./setup.py compile_catalog sdist
 | 
			
		||||
    - ./setup.py sdist
 | 
			
		||||
    - deactivate
 | 
			
		||||
    - tar tzf dist/fdroidserver-*.tar.gz | grep locale/de/LC_MESSAGES/fdroidserver.mo
 | 
			
		||||
    - tar tzf dist/fdroidserver-*.tar.gz
 | 
			
		||||
    # back to bare machine to act as user's install machine
 | 
			
		||||
    - $pip install --upgrade pip setuptools wheel  # make this go away: "error: invalid command 'bdist_wheel'"
 | 
			
		||||
    - $pip install dist/fdroidserver-*.tar.gz
 | 
			
		||||
| 
						 | 
				
			
			@ -141,7 +141,7 @@ ubuntu_bionic_pip:
 | 
			
		|||
    - fdroid=`which fdroid` ./tests/run-tests
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# test install process on a bleeding edge distro with pip
 | 
			
		||||
# test installation process on a bleeding edge distro with pip
 | 
			
		||||
arch_pip_install:
 | 
			
		||||
  image: archlinux
 | 
			
		||||
  only:
 | 
			
		||||
| 
						 | 
				
			
			@ -272,7 +272,7 @@ fedora_latest:
 | 
			
		|||
                     unzip
 | 
			
		||||
                     wget
 | 
			
		||||
                     which
 | 
			
		||||
    - ./setup.py compile_catalog sdist
 | 
			
		||||
    - ./setup.py sdist
 | 
			
		||||
    - useradd -m -c "test account" --password "fakepassword"  testuser
 | 
			
		||||
    - su testuser --login --command "cd `pwd`; $pip install --user dist/fdroidserver-*.tar.gz"
 | 
			
		||||
    - test -e ~testuser/.local/share/locale/de/LC_MESSAGES/fdroidserver.mo
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue