38 lines
		
	
	
		
			700 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			700 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| language: python
 | |
| python:
 | |
|   - "3.6"
 | |
| 
 | |
| sudo: required
 | |
| dist: trusty
 | |
| 
 | |
| branches:
 | |
|   only:
 | |
|     - master
 | |
|     - dev
 | |
| 
 | |
| install:
 | |
|   - pip install -r requirements.txt
 | |
|   # Install TeXLive
 | |
|   - curl -sSL https://gist.githubusercontent.com/seisman/ad00252a9f03fc644146a11e6983d9c5/raw/install-tl.sh -o install-tl.sh
 | |
|   - sudo bash install-tl.sh
 | |
|   - source ~/.bash_profile
 | |
|   - export TLMGR=`which tlmgr`
 | |
|   - sudo $TMLGR install letltxmacro
 | |
|   # update texlive
 | |
|   - sudo $TLMGR update --self --all
 | |
| 
 | |
| script:
 | |
|   - make html
 | |
|   - make latexpdf
 | |
| 
 | |
| after_success:
 | |
|   - cp build/latex/Makefile.pdf build/html/
 | |
| 
 | |
| deploy:
 | |
|   provider: pages
 | |
|   skip_cleanup: true
 | |
|   github_token: ${GH_TOKEN}
 | |
|   local_dir: build/html
 | |
|   on:
 | |
|     branch: master
 |