-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
42 lines (42 loc) · 1.06 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
branches:
only:
- develop
- master
os:
- linux
- osx
osx_image: xcode9.3
dist: trusty
language: java
jdk:
- oraclejdk8
services:
- docker
addons:
homebrew:
# install yosys in mac
packages:
- yosys
- graphviz
update: true
before_install:
# Install yosys in linux
- >
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo add-apt-repository ppa:saltmakrell/ppa -y;
sudo apt-get update;
sudo apt-get -y install graphviz yosys;
sudo dpkg --add-architecture i386;
sudo apt-get update;
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386;
fi
- cd cello/
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
after_success:
- cd cello-dnacompiler/
# Build docker image and deploy to DockerHub
- >
if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$DOCKER_USERNAME" != "" ] && [ "$DOCKER_PASSWORD" != "" ]; then
mvn docker:build -B && echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin && mvn docker:push -B;
fi