forked from lukecyca/travis-docker-example
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtravis-serial.yml
43 lines (39 loc) · 2.36 KB
/
travis-serial.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
sudo: required
services:
- docker
before_install:
- echo "LAUNCHING at $(date)"
- cd ${TRAVIS_BUILD_DIR}
- git clone https://github.com/guruvan/gitian-docker
- cd gitian-docker
- echo "GD_BUILD_URL=https://github.com/guruvan/maza" > maza.env
- echo "GD_BUILD_COMMIT=7e04017950b2b7d9377f54b402ca5b14b9a6d7cf" >> maza.env
- 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
install:
- echo "STARTING BUILD SCRIPT AT $(date)"
- cd ${TRAVIS_BUILD_DIR}
- cd gitian-docker
- ./build.sh maza.env all
- echo "FINISHED STAGE 1 at $(date)"
script:
- cd ${TRAVIS_BUILD_DIR}/gitian-docker
- chmod +x ./linux-deps.sh ./osx-deps.sh ./win32-deps.sh ./win64-deps.sh ./win32.sh ./win64.sh ./linux.sh ./win.sh ./osx.sh
- echo "STARTING LINUX-deps BUILD AT $(date)"
- echo "docker run -it --rm --privileged --env-file ${GD_ENV_FILE} -v $(pwd)/${NAMESPACE}/gitian-builder:/gitian/gitian-builder -v $(pwd)/${NAMESPACE}/${GD_BUILD_COIN}-src:/gitian/${GD_BUILD_COIN} ${NAMESPACE}/gitian-builder linux-deps"
- ./linux-deps.sh
- echo "STARTING LINUX BUILD AT $(date)"
- echo "docker run -it --rm --privileged --env-file ${GD_ENV_FILE} -v $(pwd)/${NAMESPACE}/gitian-builder:/gitian/gitian-builder -v $(pwd)/${NAMESPACE}/${GD_BUILD_COIN}-src:/gitian/${GD_BUILD_COIN} ${NAMESPACE}/gitian-builder linux"
- ./linux.sh
- echo "STARTING OSX-deps BUILD AT $(date)"
- echo "docker run -it --rm --privileged --env-file ${GD_ENV_FILE} -v $(pwd)/${NAMESPACE}/gitian-builder:/gitian/gitian-builder -v $(pwd)/${NAMESPACE}/${GD_BUILD_COIN}-src:/gitian/${GD_BUILD_COIN} ${NAMESPACE}/gitian-builder osx-deps"
- ./osx-deps.sh
- echo "STARTING OSX BUILD AT $(date)"
- echo "docker run -it --rm --privileged --env-file ${GD_ENV_FILE} -v $(pwd)/${NAMESPACE}/gitian-builder:/gitian/gitian-builder -v $(pwd)/${NAMESPACE}/${GD_BUILD_COIN}-src:/gitian/${GD_BUILD_COIN} ${NAMESPACE}/gitian-builder osx"
- ./osx.sh
- echo "STARTING WINDOWS BUILD AT $(date)"
- echo "docker run -it --rm --privileged --env-file ${GD_ENV_FILE} -v $(pwd)/${NAMESPACE}/gitian-builder:/gitian/gitian-builder -v $(pwd)/${NAMESPACE}/${GD_BUILD_COIN}-src:/gitian/${GD_BUILD_COIN} ${NAMESPACE}/gitian-builder win"
- ./win.sh
- echo "You are done"