-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
28 lines (23 loc) · 827 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
language: d
services:
- docker
branches:
only:
- master
env:
- D_VERSION=dmd-beta
- D_VERSION=dmd
- D_VERSION=ldc-beta
- D_VERSION=ldc
- D_VERSION=gdc
matrix:
allow_failures:
- env: D_VERSION=gdc
script:
- export D_VERSION_RESOLVED=$(~/dlang/install.sh ${D_VERSION} | sed -n -e "s/.*source ~\/dlang\/\(.*\)\/activate.*/\1/p")
- env
- make build D_VERSION=${D_VERSION} D_VERSION_RESOLVED=${D_VERSION_RESOLVED}
- if [ "$D_VERSION" == "dmd" ] ; then make test ; fi
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] ; then docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" ; fi
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then make push D_VERSION=${D_VERSION} D_VERSION_RESOLVED=${D_VERSION_RESOLVED}; fi