This repository has been archived by the owner on Dec 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
61 lines (55 loc) · 1.6 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
dist: xenial
sudo: required
services:
- docker
matrix:
include:
- language: python
python: 3.7
cache:
directories:
- /home/travis/.cache/
- /home/travis/.local/
before_install:
- mkdir -p /home/travis/.cache/
- mkdir -p /home/travis/.local/bin/
- pip install coverage codecov sphinx sphinxcontrib-asyncio black sphinx_rtd_theme
script:
- ./.ci/run.sh
- cd pix2pix/
- make
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: master
- language: java
jdk: openjdk8
cache:
directories:
- $HOME/.m2
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep 'zeppelin'
then
echo "Not running Zeppelin stage, since no files where changed here"
exit 0
else
sudo apt-get update
sudo apt-get remove scala-library scala
sudo wget https://downloads.lightbend.com/scala/2.12.8/scala-2.12.8.deb
sudo dpkg -i scala-2.12.8.deb
sudo apt-get update
sudo apt-get install scala
sudo apt-get install npm
sudo npm i npm@latest -g
fi
script:
- MAIN_FOLDER=$(pwd)
- cd ${MAIN_FOLDER}/zeppelin-notebook/
- ./stacks-zeppelin.sh -a build_zeppelin
- sudo ./stacks-zeppelin.sh -a copy_files
- sudo ./stacks-zeppelin.sh -a build_image
- ./stacks-zeppelin.sh -a start_zeppelin