forked from zhblue/hustoj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (27 loc) · 942 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: minimal
services:
- docker
jobs:
include:
- stage: build deb
if: tag IS present
before_install:
- docker pull woodenfish42/hustoj-deb-debian8
- docker pull woodenfish42/hustoj-deb-ubuntu18
script:
- docker run -v `pwd`/deb:/tmp/deb woodenfish42/hustoj-deb-debian8 sh -c "TRAVIS_TAG=$TRAVIS_TAG DISTRIBUTION=debian8 /root/build.sh"
- docker run -v `pwd`/deb:/tmp/deb woodenfish42/hustoj-deb-ubuntu18 sh -c "TRAVIS_TAG=$TRAVIS_TAG DISTRIBUTION=ubuntu18 /root/build.sh"
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: deb/*
skip_cleanup: true
on:
tags: true
- stage: sync to gitee
if: branch = master
script:
- git fetch --unshallow
- git gc --prune=now
- travis_wait 300 git push --force https://zhblue:[email protected]/zhblue/hustoj.git master