mirror of
				https://github.com/thelsing/knx.git
				synced 2025-10-26 10:26:25 +01:00 
			
		
		
		
	change cmake file for travis
This commit is contained in:
		
							parent
							
								
									d153825f2e
								
							
						
					
					
						commit
						edb9b6b526
					
				
							
								
								
									
										135
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										135
									
								
								.travis.yml
									
									
									
									
									
								
							| @ -1,72 +1,63 @@ | |||||||
|  matrix: |  matrix: | ||||||
|   include: |   include: | ||||||
|     # Test build for Linux platform |     # Test build for Linux platform | ||||||
|     - language: cpp |     - language: cpp | ||||||
|       os: linux |       os: linux | ||||||
|       addons: |       addons: | ||||||
|         apt: |         apt: | ||||||
|           sources: |           sources: | ||||||
|             - ubuntu-toolchain-r-test |             - ubuntu-toolchain-r-test | ||||||
|           packages: |           packages: | ||||||
|             - g++-7 |             - g++-7 | ||||||
|       env: |       env: | ||||||
|         - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" |         - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" | ||||||
|       cache: |       cache: | ||||||
|         directories: |         directories: | ||||||
|       git: |       git: | ||||||
|         depth: false |         depth: false | ||||||
|         quiet: true |         quiet: true | ||||||
| 
 | 
 | ||||||
|       before_install: |       before_install: | ||||||
|         - eval "${MATRIX_EVAL}" |         - eval "${MATRIX_EVAL}" | ||||||
| 
 | 
 | ||||||
|       install: |       install: | ||||||
|        |        | ||||||
|       script: |       script: | ||||||
|         - echo "building knx-linux" |         - mkdir -p build | ||||||
|         - cd examples/knx-linux |         - cd build | ||||||
|         - mkdir -p build |         - cmake .. | ||||||
|         - cd build |         - make | ||||||
|         - cmake .. | 
 | ||||||
|         - make |     # Test build for PlatformIO based projects | ||||||
|         - cd ../.. |     - language: python | ||||||
|         - echo "building knx-linux-coupler" |       python: | ||||||
|         - cd knx-linux-coupler |         - "3.8" | ||||||
|         - mkdir -p build |       cache: | ||||||
|         - cd build |         directories: | ||||||
|         - cmake .. |           - "~/.platformio" | ||||||
|         - make |       env: | ||||||
| 
 |         - PLATFORMIO_EXTRA_SCRIPTS=pre:/tmp/scripts/custom_hwids.py | ||||||
|     # Test build for PlatformIO based projects |       install: | ||||||
|     - language: python |         - pip install -U platformio | ||||||
|       python: |         - platformio update       | ||||||
|         - "3.8" |       script: | ||||||
|       cache: |         # PRE scripts have to be copied manually as "platformio ci does not care about it" | ||||||
|         directories: |         - mkdir -p /tmp/scripts | ||||||
|           - "~/.platformio" |         - cp examples/knx-usb/custom_hwids.py /tmp/scripts | ||||||
|       env: | 
 | ||||||
|         - PLATFORMIO_EXTRA_SCRIPTS=pre:/tmp/scripts/custom_hwids.py |         # Enable verbose output of platformio | ||||||
|       install: |         #- platformio settings set force_verbose yes | ||||||
|         - pip install -U platformio | 
 | ||||||
|         - platformio update       |         - echo "-------";echo "Compiling example knx-usb";echo "--------"; | ||||||
|       script: |         - platformio ci --lib="." --project-conf=examples/knx-usb/platformio-ci.ini examples/knx-usb/src/main.cpp | ||||||
|         # PRE scripts have to be copied manually as "platformio ci does not care about it" | 
 | ||||||
|         - mkdir -p /tmp/scripts |         - echo "-------";echo "Compiling example knx-demo";echo "--------"; | ||||||
|         - cp examples/knx-usb/custom_hwids.py /tmp/scripts |         - platformio ci --lib="." --project-conf=examples/knx-demo/platformio-ci.ini examples/knx-demo/knx-demo.ino | ||||||
| 
 | 
 | ||||||
|         # Enable verbose output of platformio |         - echo "-------";echo "Compiling example knx-demo-coupler";echo "--------"; | ||||||
|         #- platformio settings set force_verbose yes |         - platformio ci --lib="." --project-conf=examples/knx-demo-coupler/platformio-ci.ini examples/knx-demo-coupler/knx-demo-coupler.ino | ||||||
| 
 | 
 | ||||||
|         - echo "-------";echo "Compiling example knx-usb";echo "--------"; | notifications: | ||||||
|         - platformio ci --lib="." --project-conf=examples/knx-usb/platformio-ci.ini examples/knx-usb/src/main.cpp |   email: | ||||||
| 
 |     on_success: change | ||||||
|         - echo "-------";echo "Compiling example knx-demo";echo "--------"; |     on_failure: change | ||||||
|         - platformio ci --lib="." --project-conf=examples/knx-demo/platformio-ci.ini examples/knx-demo/knx-demo.ino |  | ||||||
| 
 |  | ||||||
|         - echo "-------";echo "Compiling example knx-demo-coupler";echo "--------"; |  | ||||||
|         - platformio ci --lib="." --project-conf=examples/knx-demo-coupler/platformio-ci.ini examples/knx-demo-coupler/knx-demo-coupler.ino |  | ||||||
| 
 |  | ||||||
| notifications: |  | ||||||
|   email: |  | ||||||
|     on_success: change |  | ||||||
|     on_failure: change |  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user