Update gitlab-ci
add test stage
This commit is contained in:
		
							parent
							
								
									1c19a807d9
								
							
						
					
					
						commit
						7b945fcda4
					
				@ -1,5 +1,6 @@
 | 
			
		||||
stages:
 | 
			
		||||
  - build
 | 
			
		||||
  - test
 | 
			
		||||
  - deploy
 | 
			
		||||
variables:
 | 
			
		||||
  GIT_DEPTH: "3"
 | 
			
		||||
@ -19,6 +20,7 @@ linux-beta:
 | 
			
		||||
  script:
 | 
			
		||||
    - cargo build --release --verbose
 | 
			
		||||
    - strip target/release/parity
 | 
			
		||||
    - cp target/release/parity parity
 | 
			
		||||
  tags:
 | 
			
		||||
    - rust
 | 
			
		||||
    - rust-beta
 | 
			
		||||
@ -26,6 +28,12 @@ linux-beta:
 | 
			
		||||
    paths:
 | 
			
		||||
    - target/release/parity
 | 
			
		||||
    name: "${CI_BUILD_NAME}_parity"
 | 
			
		||||
  stage: deploy
 | 
			
		||||
  tags:
 | 
			
		||||
    - rust
 | 
			
		||||
    - rust-beta
 | 
			
		||||
  script:
 | 
			
		||||
    - ./deploy.sh
 | 
			
		||||
linux-stable:
 | 
			
		||||
  stage: build
 | 
			
		||||
  image: ethcore/rust:stable
 | 
			
		||||
@ -92,6 +100,11 @@ linux-armv7:
 | 
			
		||||
    - tags
 | 
			
		||||
    - stable
 | 
			
		||||
  script:
 | 
			
		||||
    - rm -rf .cargo
 | 
			
		||||
    - mkdir -p .cargo
 | 
			
		||||
    - echo "[target.armv7-unknown-linux-gnueabihf]" >> .cargo/config
 | 
			
		||||
    - echo "linker= \"arm-linux-gnueabihf-gcc\"" >> .cargo/config
 | 
			
		||||
    - cat .cargo/config
 | 
			
		||||
    - cargo build --target armv7-unknown-linux-gnueabihf --release --verbose
 | 
			
		||||
    - arm-linux-gnueabihf-strip target/armv7-unknown-linux-gnueabihf/release/parity
 | 
			
		||||
  tags:
 | 
			
		||||
@ -110,6 +123,11 @@ linux-arm:
 | 
			
		||||
    - tags
 | 
			
		||||
    - stable
 | 
			
		||||
  script:
 | 
			
		||||
    - rm -rf .cargo
 | 
			
		||||
    - mkdir -p .cargo
 | 
			
		||||
    - echo "[target.arm-unknown-linux-gnueabihf]" >> .cargo/config
 | 
			
		||||
    - echo "linker= \"arm-linux-gnueabihf-gcc\"" >> .cargo/config
 | 
			
		||||
    - cat .cargo/config
 | 
			
		||||
    - cargo build --target arm-unknown-linux-gnueabihf --release --verbose
 | 
			
		||||
    - arm-linux-gnueabihf-strip target/arm-unknown-linux-gnueabihf/release/parity
 | 
			
		||||
  tags:
 | 
			
		||||
@ -129,6 +147,11 @@ linux-armv6:
 | 
			
		||||
    - tags
 | 
			
		||||
    - stable
 | 
			
		||||
  script:
 | 
			
		||||
    - rm -rf .cargo
 | 
			
		||||
    - mkdir -p .cargo
 | 
			
		||||
    - echo "[target.arm-unknown-linux-gnueabi]" >> .cargo/config
 | 
			
		||||
    - echo "linker= \"arm-linux-gnueabi-gcc\"" >> .cargo/config
 | 
			
		||||
    - cat .cargo/config
 | 
			
		||||
    - cargo build --target arm-unknown-linux-gnueabi --release --verbose
 | 
			
		||||
    - arm-linux-gnueabi-strip target/arm-unknown-linux-gnueabi/release/parity
 | 
			
		||||
  tags:
 | 
			
		||||
@ -148,6 +171,11 @@ linux-aarch64:
 | 
			
		||||
    - tags
 | 
			
		||||
    - stable
 | 
			
		||||
  script:
 | 
			
		||||
    - rm -rf .cargo
 | 
			
		||||
    - mkdir -p .cargo
 | 
			
		||||
    - echo "[target.aarch64-unknown-linux-gnu]" >> .cargo/config
 | 
			
		||||
    - echo "linker= \"aarch64-linux-gnu-gcc\"" >> .cargo/config
 | 
			
		||||
    - cat .cargo/config
 | 
			
		||||
    - cargo build --target aarch64-unknown-linux-gnu --release --verbose
 | 
			
		||||
    - aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/parity
 | 
			
		||||
  tags:
 | 
			
		||||
@ -193,3 +221,11 @@ windows:
 | 
			
		||||
    - target/release/parity.exe
 | 
			
		||||
    - target/release/parity.pdb
 | 
			
		||||
    name: "${CI_BUILD_NAME}_parity"
 | 
			
		||||
test-linux:
 | 
			
		||||
  stage: test
 | 
			
		||||
  before_script:
 | 
			
		||||
    - git submodule update --init --recursive
 | 
			
		||||
  script:
 | 
			
		||||
    - ./test.sh --verbose
 | 
			
		||||
  dependencies:
 | 
			
		||||
    - linux-stable
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user