I was able to run it installing npm and then installing sass package of npm.
I needed also to add a workaround to Error: CERT_UNTRUSTED
error, using the config set registry command.
before_install: - sudo apt update - sudo apt install npm
public class WordPresenterTest { | |
@Mock | |
WordPresenter.View view; | |
@Mock | |
WordService wordService; | |
private WordPresenter presenter; |
image: java:8 | |
pipelines: | |
default: | |
- step: | |
caches: | |
- gradle | |
script: | |
- bash ./gradlew test |
@Controller | |
public class ForwardingController { | |
@RequestMapping("/**/{path:[^\\.]+}") | |
public String forward() { | |
// path: checks only the path of url | |
// [^\.]: any char, except literal dot (because if the url is foo.css (for example) we don't want to redirect) | |
return "forward:/"; | |
} |
pipeline { | |
agent { | |
any {} | |
} | |
stages { | |
stage('setup') { | |
steps { | |
sh './gradlew tasks' | |
} |
sudo: required # need by docker | |
dist: trusty | |
group: travis_lts # travis_lts (stable) vs travis_latest (more features-fixes) | |
language: java | |
jdk: | |
- oraclejdk8 | |
services: |
import com.terahorse.gradle.AWS | |
import com.terahorse.gradle.SimpleExec | |
def group = 'fobit-aws' | |
task setupFobitPackage(type: SimpleExec, group: group) { | |
description 'Creates a simple package for AWS EB. This package contains only Dockerrun.aws.json.' | |
doFirst { | |
run "cp Dockerrun-fobit.aws.json Dockerrun.aws.json" | |
} |
Just run this command. It will download 3GB of the docker travis image. Then you can run commands inside the travis-ci container:
docker run --name travis -it -u travis travisci/ci-garnet:packer-1515445631-7dfb2e1 /bin/bash -l
To know which images exists, please check docker hub: https://hub.docker.com/r/travisci/ci-garnet/tags/
Check also this doc: https://github.com/habitat-sh/habitat/wiki/Testing-travis-CI-workflows-locally-in-docker
// spring: allow automatic restart | |
compile "org.springframework.boot:spring-boot-devtools:2.0.3.RELEASE" |
before_install: | |
- gem install sass --version "=3.5.6" |