Add travis support
This commit is contained in:
		
							parent
							
								
									14e1077ad1
								
							
						
					
					
						commit
						9032df97cf
					
				
							
								
								
									
										42
									
								
								.travis.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								.travis.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,42 @@ | |||||||
|  | jobs: | ||||||
|  |   include: | ||||||
|  |     - os: osx | ||||||
|  |       osx_image: xcode10.1 | ||||||
|  |       language: generic | ||||||
|  |       env: ARTIFACT=x86_64-apple-darwin-10.13-ghcup | ||||||
|  |       addons: | ||||||
|  |         homebrew: | ||||||
|  |           packages: | ||||||
|  |           - curl | ||||||
|  |           - libffi | ||||||
|  |           - libiconv | ||||||
|  |           - make | ||||||
|  |           - ncurses | ||||||
|  |           - xz | ||||||
|  | 
 | ||||||
|  |     - os: osx | ||||||
|  |       osx_image: xcode11.3 | ||||||
|  |       language: generic | ||||||
|  |       env: ARTIFACT=x86_64-apple-darwin-10.14-ghcup | ||||||
|  |       addons: | ||||||
|  |         homebrew: | ||||||
|  |           packages: | ||||||
|  |           - curl | ||||||
|  |           - libffi | ||||||
|  |           - libiconv | ||||||
|  |           - make | ||||||
|  |           - ncurses | ||||||
|  |           - xz | ||||||
|  | 
 | ||||||
|  | script: ".travis/build.sh" | ||||||
|  | 
 | ||||||
|  | deploy: | ||||||
|  |   provider: releases | ||||||
|  |   api_key: | ||||||
|  |     secure: bZW4SpPYvjA5vCdTTHhME1yKcNwvix9OgNiQ6foJanySNoE5x1TED2ZZD9wFtVNYMCldlkL3DlosrlDNHyvEAlC5myraKLIfZ26F1hGBbtxenCb+nAbcW3wDRMUXA30PNcp4hKuFU+mBKwE2xwav/wWLfX+YlaVvjD6t4ZaQriubtuE/zIIWW0itirorcpAAgW6Lojif/oPGEtC6LsA3+hmHX8OaTjNnsWiSurxobraNqKUWh/0JlC5xCWkqi8hYq0fHRfzVU+k7MMuWkHV4LkaW2FUlpbRzs2CzeZjCRmNHbvhUdSEo5e6ux/2YCKEOSRUUASzsbKodvVQS9rC5bNQZZ0XFtG9VpddzSTLUYEGGzLM671vAL+iT91kF4q4zt9EtKhZnKwfCVO1X2/SBEzOYSzkqtV1a6aP3B9CI22WByJQmh2AoZ6gbd1Id7ntjTqFjm1WyCwsyIEjKPb7jCG+xNUDlZnqNYYEI9qnXUR6wC1tOYEY95U23cU2xYjLvxArEGXG77qXm6sBgnBZoTlIU4aoDOniMdxADJNmHpSFTK7zQirSmPmF/BEPF+GeyqmpmpCivSXuBfM+63tU+o98XMqeRA5nIwIQ3L2MJfv1d69IjKASOL7Yq/P5lY3hBh1v8jZiU2LiT9yj7y4P8V9+8yg5XwDldpZPcD5fB7ls= | ||||||
|  |   file: $ARTIFACT | ||||||
|  |   on: | ||||||
|  |     repo: hasufell/ghcup-hs | ||||||
|  |     tags: true | ||||||
|  |   skip_cleanup: true | ||||||
|  |   draft: true | ||||||
							
								
								
									
										22
									
								
								.travis/build.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										22
									
								
								.travis/build.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,22 @@ | |||||||
|  | #/bin/sh | ||||||
|  | 
 | ||||||
|  | set -ex | ||||||
|  | 
 | ||||||
|  | ## install ghc via old ghcup | ||||||
|  | 
 | ||||||
|  | mkdir -p ~/.ghcup/bin | ||||||
|  | curl https://gitlab.haskell.org/haskell/ghcup/raw/master/ghcup > ~/.ghcup/bin/ghcup | ||||||
|  | chmod +x ~/.ghcup/bin/ghcup | ||||||
|  | 
 | ||||||
|  | export PATH="$HOME/.ghcup/bin:$PATH" | ||||||
|  | 
 | ||||||
|  | ghcup install 8.8.3 | ||||||
|  | ghcup install-cabal 3.2.0.0 | ||||||
|  | ghcup set 8.8.3 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | ## install ghcup | ||||||
|  | 
 | ||||||
|  | cabal update | ||||||
|  | cabal build -fcurl | ||||||
|  | cp "$(cabal new-exec --verbose=0 --offline sh -- -c 'command -v ghcup')" "./${ARTIFACT}" | ||||||
| @ -6,14 +6,11 @@ package streamly | |||||||
|     ghc-options: -O2 -fspec-constr-recursive=16 -fmax-worker-args=16 |     ghc-options: -O2 -fspec-constr-recursive=16 -fmax-worker-args=16 | ||||||
| 
 | 
 | ||||||
| package ghcup | package ghcup | ||||||
|     ghc-options: -O2 -fspec-constr-recursive=16 -fmax-worker-args=16 -split-sections |     ghc-options: -O2 -fspec-constr-recursive=16 -fmax-worker-args=16 | ||||||
| 
 | 
 | ||||||
| package tar-bytestring | package tar-bytestring | ||||||
|     ghc-options: -O2 |     ghc-options: -O2 | ||||||
| 
 | 
 | ||||||
| package * |  | ||||||
|     ghc-options: -split-sections |  | ||||||
| 
 |  | ||||||
| constraints: http-io-streams -brotli | constraints: http-io-streams -brotli | ||||||
| 
 | 
 | ||||||
| allow-newer: base | allow-newer: base | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user