51 lines
		
	
	
		
			908 B
		
	
	
	
		
			YAML
		
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			908 B
		
	
	
	
		
			YAML
		
	
	
	
| stages:
 | |
|   - coverage
 | |
|   - builddocs
 | |
|   - deploy
 | |
| 
 | |
| variables:
 | |
|   LC_ALL: C.UTF-8
 | |
|   LANG: "en_US.UTF-8"
 | |
|   JEKYLL_ENV: production
 | |
| 
 | |
| coverage:
 | |
|   image: cirrusci/flutter
 | |
|   stage: coverage
 | |
|   coverage: '/^\s+lines.+: (\d+.\d*%)/'
 | |
|   dependencies: []
 | |
|   script:
 | |
|     - flutter pub get
 | |
|     - flutter pub run test
 | |
| 
 | |
| code_analyze:
 | |
|   image: cirrusci/flutter
 | |
|   stage: coverage
 | |
|   dependencies: []
 | |
|   script:
 | |
|     - flutter analyze
 | |
| 
 | |
| builddocs:
 | |
|   stage: builddocs
 | |
|   image: cirrusci/flutter
 | |
|   script:
 | |
|     - dartdoc --exclude "dart:async,dart:collection,dart:convert,dart:core,dart:developer,dart:io,dart:isolate,dart:math,dart:typed_data,dart:ui"
 | |
|   artifacts:
 | |
|     paths:
 | |
|       - doc/api/
 | |
|   only:
 | |
|     - master
 | |
| 
 | |
| pages:
 | |
|   stage: deploy
 | |
|   image: ruby:2.3
 | |
|   script:
 | |
|     - mv doc/api/* ./
 | |
|     - bundle install
 | |
|     - bundle exec jekyll build -d public
 | |
|   dependencies:
 | |
|     - builddocs
 | |
|   artifacts:
 | |
|     paths:
 | |
|       - public
 | |
|   only:
 | |
|     - master |