mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add static build.
This commit is contained in:
		
							
								
								
									
										12
									
								
								.github/travis/before-install.sh
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								.github/travis/before-install.sh
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
 | 
			
		||||
	sudo apt-get update -qq
 | 
			
		||||
	sudo apt-get -y install bison \
 | 
			
		||||
			        autotools-dev \
 | 
			
		||||
				libncurses5-dev \
 | 
			
		||||
				libevent-dev \
 | 
			
		||||
				pkg-config \
 | 
			
		||||
				libutempter-dev \
 | 
			
		||||
				build-essential
 | 
			
		||||
fi
 | 
			
		||||
							
								
								
									
										9
									
								
								.github/travis/build.sh
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.github/travis/build.sh
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
sh autogen.sh || exit 1
 | 
			
		||||
if [ "$BUILD" = "static" ]; then
 | 
			
		||||
	./configure --enable-static || exit 1
 | 
			
		||||
else
 | 
			
		||||
	./configure || exit 1
 | 
			
		||||
fi
 | 
			
		||||
exec make
 | 
			
		||||
							
								
								
									
										27
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								.travis.yml
									
									
									
									
									
								
							@@ -1,16 +1,29 @@
 | 
			
		||||
language: c
 | 
			
		||||
 | 
			
		||||
os:
 | 
			
		||||
    - linux
 | 
			
		||||
    - osx
 | 
			
		||||
  - linux
 | 
			
		||||
  - osx
 | 
			
		||||
 | 
			
		||||
compiler:
 | 
			
		||||
    - gcc
 | 
			
		||||
    - clang
 | 
			
		||||
  - gcc
 | 
			
		||||
  - clang
 | 
			
		||||
 | 
			
		||||
env:
 | 
			
		||||
  - BUILD=
 | 
			
		||||
  - BUILD=static
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  exclude:
 | 
			
		||||
    - os: osx
 | 
			
		||||
    - compiler: gcc
 | 
			
		||||
    - env: BUILD=static
 | 
			
		||||
  exclude:
 | 
			
		||||
    - os: osx
 | 
			
		||||
    - compiler: clang
 | 
			
		||||
    - env: BUILD=static
 | 
			
		||||
 | 
			
		||||
before_install:
 | 
			
		||||
    - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; fi
 | 
			
		||||
    - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -y install bison autotools-dev libncurses5-dev libevent-dev pkg-config libutempter-dev build-essential; fi
 | 
			
		||||
  - sh .github/travis/before-install.sh
 | 
			
		||||
 | 
			
		||||
script:
 | 
			
		||||
    - ./autogen.sh && ./configure && make
 | 
			
		||||
  - sh .github/travis/build.sh
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user