forked from guruvan/gitian-docker
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
53 lines (50 loc) · 4.18 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
sudo: required
services:
- docker
cache:
apt: true
directories:
- ${TRAVIS_BUILD_DIR}/gitian-docker/${USER}/gitian-builder/cache
- ${TRAVIS_BUILD_DIR}/gitian-docker/${USER}/gitian-builder/inputs
before_install:
- echo "LAUNCHING at $(date)"
- cd ${TRAVIS_BUILD_DIR}
- echo "git clone https://github.com/mazaclub/gitian-docker"
- test -d gitian-docker || mkdir -v gitian-docker
- cd gitian-docker
- git init
- git remote add origin https://github.com/mazaclub/gitian-docker
- git fetch origin
- git checkout -t origin/master
- echo "GD_BUILD_URL=https://github.com/mazacoin/maza" > maza.env
- echo "GD_BUILD_COMMIT=da3675a56fa3ce7b494c5ec85f395331413b38c6" >> maza.env
- export GD_BUILD_COMMIT=da3675a56fa3ce7b494c5ec85f395331413b38c6
- export GD_BUILD_SHORT=$(echo ${GD_BUILD_COMMIT}| cut -c1-8)
- echo "GD_BUILD_COIN=maza" >> maza.env
- echo "GD_HOST_OSXSDK=${TRAVIS_BUILD_DIR}/gitian-docker/MacOSX10.9.sdk.tar.gz" >> maza.env
- echo "GD_BUILD_OSXSDK=MacOSX10.9.sdk.tar.gz" >> maza.env
- wget https://s3-us-west-2.amazonaws.com/downloads.maza.club/MacOSX10.9.sdk.tar.gz
env:
global:
- secure: "N5U0uW+sXbM3S5qbKbZHLttsM1rwZijCdhQoBKnKplzTqj2LX325nXuvNJHsGB6k/EOdRJllnJxpm1Ewz9SORhzSipFTu1Rn6gFU21oxjUhVLJiTCZz7TyKQ/wYy+P+RMoa7n02ymvegb0fi/iBSBOeaULhgFzi/ADC1kHxRXSnicF+Y9UOnyHQv0+zW1VvQSKie3iXfLM6nyhX2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k3Z2urJbbbpFJdwI+pFUWdzAxgxN5vD1Y16vE+q3HU032aZVfXeQ2pd5WTFB/CloK5N8StzKwcYtXTM0PEWR9/hFG2G1E="
- secure: "Ke/FIobX0uAQiVzhXCoBaRw7t21Dq5GWl3k7ASYqpuTreP7mSi9gkvyQTZ6MCuIQUbuyh8aMmcmRtTdy4XaReHHWmCZrpQfhn8Me6ULZIPP8bEMwazCSS87K4DRf44JHu1hFZoMhLoWs8JRtJYt5+XC0+rSz5NLNPXKKC6V8OhZyuvrA3vFkQsPNR1yjvSFFR64xCg7OxJGVN1KOxUeyoGgaXugDxqCGqRCSielXZQzZnYAl/Z/GvLNd+A0MDJL9zk884IWUqWaBZ5tuX5awA1+1pymNv3kph/papoVmjrxNi4mZeb14XfwPjGGPn7oZu1mpD5v07D3dHUnABqo6cprykSnOR2k8T8g/Smsz/a6Mvr8j2rn9C+OLBbGK7EOIPzbQK75cypYmZNECq1VI56ig2Jup8fN36ulg0JR3/46teMXKNx5EP+X/L99r9Chsq2Tfoz0DcIIEE8ux7xMsUgsF4y5seed98wFwr7SGdhoiXnqePjiUr9ZndvZ1BfrYmZ935mYK1Z2Yv+Ug5BssT7ONJEph407wytxiRTPtRe6i9jBjcbFLeAGbeQpBr1wwOJ8bxyEo21AYN2kGEynQn7og7qXkA1ahy6d1vccNJasb3RkROhjappPCfsQ5U7jbYq3UdXJ+PGTXDbLB3sKoDSjaVCzI6gcx6cJ5yOY0U8o="
matrix:
- GD_COIN_PACKAGE=maza
install:
- echo "STARTING BUILD SCRIPT AT $(date)"
- cd ${TRAVIS_BUILD_DIR}
- cd gitian-docker
- docker pull maza/gitian-travis && docker tag -f maza/gitian-travis ${USER}/gitian-stage1
- echo "FINISHED STAGE 1 at $(date)"
script:
- cd ${TRAVIS_BUILD_DIR}/gitian-docker
- ./build.sh ${GD_COIN_PACKAGE}.env all
after_success:
- echo "Travis_PullRequest? ${TRAVIS_PULL_REQUEST}"
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then docker login -u ${DOCKER_LOGIN} -p ${DOCKER_PASS} -e ${DOCKER_EMAIL}; fi
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then docker tag ${USER}/gitian-builder maza/gitian-builder:${GD_BUILD_SHORT}; fi
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then docker tag ${USER}/gitian-builder maza/gitian-builder:latest; fi
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then docker push maza/gitian-builder:${GD_BUILD_SHORT}; fi
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then docker push maza/gitian-builder:latest; fi
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then echo "Build Complete at $(date)" ; fi