-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
94 lines (94 loc) · 2.35 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
env:
global:
- TERM=dumb
dist: xenial
notifications:
email: false
git:
quiet: true
depth: 1
language: java
jdk: openjdk8
node_js: lts/*
python: 3
service:
- docker
addons:
apt:
update: true
packages:
- sudo
- lsof
- wget
- bash
- curl
- jq
- libxml2-utils
- unzip
- docker-ce
- python3-dev
- python3-pip
- python3-six
- python3-setuptools
- libappindicator1
- fonts-liberation
- google-chrome-stable
install: true
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
#
- docker-compose -v
- export PATH=$HOME/.local/bin:$PATH
- pip3 install --user $(whoami) --upgrade pip >/dev/null # pip3 -> pip
- pip install --user $(whoami) --upgrade docker-compose httpie >/dev/null 2>&1
- http --version --debug
- docker-compose -v
#
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 80 8001 8002 8080 5432
stages:
- test
- deploy
jobs:
include:
- stage: test
jdk: openjdk8
name: a-simple-example
script:
- cd $TRAVIS_BUILD_DIR && ./sbtw clean test
- cd $TRAVIS_BUILD_DIR && ./sbtw run
- cd $TRAVIS_BUILD_DIR && ./sbtw clean assembly
- java -jar $TRAVIS_BUILD_DIR/target/scala-*/*-assembly-*.jar
# - stage: deploy
# jdk: openjdk8
# name: GitHub release and GitHub pages deployment
# script: skip
# if: branch = "master" AND type NOT IN (pull_request)
# before_deploy:
# - if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ ".$TRAVIS_BRANCH" != ".master" ] ; then exit 0 ; fi
# - env
# - set -e
# # documentation
# - echo build documentation...
# - mkdir -p target/generated-docs
# - touch target/generated-docs/index.html
# - cp -Rf target/generated-docs/index.html target/generated-docs/404.html
# deploy: &pages
# provider: pages
# skip-cleanup: true
# github-token: "$GITHUB_TOKEN"
# keep-history: true
# local-dir: target/generated-docs
# target_branch: gh-pages
# on:
# branch: master
# condition: "$TRAVIS_PULL_REQUEST = false"
cache:
pip: true
packages: true
directories:
- $HOME/.m2
- $HOME/.gradle
- $HOME/.docker