forked from herumi/bls
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (36 loc) · 1.54 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
sudo: false
dist: trusty
services:
- docker
env:
global:
- IMAGE_TAG=spiderpowa/bls-go-alpine
- DOCKER_USER=spiderpowadeploy
- secure: T4mkZzGofMqia/izUZAh1sPg8AD1ET7JWNagfRNZSClxkjjcgQp//LTZTuRVaaMhz5Bm3QwOLQ6IvtwUiS5fyaT49qLHXhx6PAY+w36g9lYJQkk02Kyy5sgyb9Kl1QzcoDmMOXKtQ1GiGa/BiOBcjhlWiuHi7l423RgVVu9fyhLKZBwGmyKnoTWVqZsx9XZVIizgZ1zXnIWJjTDkqZxDq0iXR++ZHmA+yhjn7qU8TNY6WGoewBvCpyIcW4Bkkinm4U7/pJN6w0QQcA3AQXbbymPmtH+CQeUqbK4WKpE1/0ugzAi68bijf7y9+W3eDwELwufYzbS2GPhvqe9J8kxeoNj5ej7St+Av08qJbKDyKCzF0pB2qpGgZl+MKFLYxmGmgHLlZZ8AO5aYkX/d4XJtS8ncnkvnTg0/D9FbVM9sWTdehI1xh65QXijFL5NC1IDsJDHfGsc/5KIEqwByRddBFwgqvbuLX9uZMnhFbMsOJSVBaRigsNvccY4CU8SD58kn6NJMFkTMQFxH93Qq89aEal7fWlCio0VGtRK7qK6izlTj95ryPC8tdNJIcgXB026hoVx9Zcjo5j26fXZR9hn3RqMY0AZwMKhvA8bLixrjtLDjrg3VphKmCrMaXH1q13EyoGSHCLwSklizfSqbYyqS+9t0PFpDQ3dZ4iIvsAbi3EA=
language: cpp
compiler:
- gcc
- clang
addons:
apt:
packages:
- libgmp-dev
install:
- git clone --depth 1 https://github.com/herumi/mcl.git $TRAVIS_BUILD_DIR/../mcl
script:
- make -j3
- make test DISABLE_THREAD_TEST=1
- make test_go
- bin/bls_c384_test.exe
- docker build --tag "$IMAGE_TAG" . -f images/bls-go-alpine/Dockerfile --no-cache
before_deploy:
- echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
- git_commit="$(git rev-parse --short HEAD)"
- docker tag "$IMAGE_TAG" "${IMAGE_TAG}:${git_commit}"
- docker tag "$IMAGE_TAG" "${IMAGE_TAG}:latest"
deploy:
provider: script
script: docker push "${IMAGE_TAG}:latest" && docker push "${IMAGE_TAG}:${git_commit}"
on:
branch: dev
condition: "$CC = gcc"