Skip to content

Commit 73b9fe3

Browse files
committed
Add travis ci integration.
1 parent cd5b848 commit 73b9fe3

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.travis.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#
2+
# MetaCall Library by Parra Studios
3+
# Travis CD/CI infrastructure for MetaCall.
4+
#
5+
# Copyright (C) 2016 - 2019 Vicente Eduardo Ferrer Garcia <[email protected]>
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
19+
20+
language: cpp
21+
22+
branches:
23+
only:
24+
- development
25+
26+
sudo: required
27+
28+
services:
29+
- docker
30+
31+
dist: trusty
32+
33+
env:
34+
global:
35+
- GIT_SUBMODULE_STRATEGY: recursive
36+
- IMAGE_REGISTRY: registry.hub.docker.com
37+
- IMAGE_NAME: registry.hub.docker.com/$TRAVIS_REPO_SLUG
38+
- ARTIFACTS_PATH: $TRAVIS_BUILD_DIR/artifacts
39+
40+
script:
41+
- $TRAVIS_BUILD_DIR/docker-compose.sh pull
42+
- $TRAVIS_BUILD_DIR/docker-compose.sh build-cache
43+
- $TRAVIS_BUILD_DIR/docker-compose.sh pack
44+
45+
# TODO: Deploy to GitHub
46+
#after_script:
47+
# - docker pull tsub/ghr
48+
# - docker run -v $TRAVIS_BUILD_DIR:/work -w /work -e GITHUB_TOKEN=$GITHUB_TOKEN ghr --username user --repository repo v1.0.0 pkg/
49+

0 commit comments

Comments
 (0)