-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
56 lines (56 loc) · 1.55 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
---
# Travis supports natively the following software on the Ubuntu 22.04
# https://docs.travis-ci.com/user/reference/jammy/#jvm-clojure-groovy-java-scala-support
dist: jammy
# branches:
# only:
# - main
jobs:
include:
- stage: build
language: java
jdk: openjdk17
before_script: cd java
# TODO bring back running via make when travis supports jdk21
# script: make build
script: mvn -Djava.version=17 -s .mvn/settings.xml --show-version clean install
cache:
directories:
- $HOME/.m2
env:
- CACHE=java
- language: java
jdk: openjdk17 # Travis does not support java 21 yet'
before_script: cd algorithms/project-euler
# TODO bring back running via make when travis supports jdk21
# script: make build
script: mvn -Djava.version=17 -s .mvn/settings.xml --show-version clean install
cache:
directories:
- $HOME/.m2
env:
- CACHE="algorithms/project-euler"
- language: rust
before_script: cd rust/guessing_game
cache: cargo
- language: go
go: "1.22" # Travis does not support go 1.21, neither 1.22 yet'
before_install: cd go/learning
script:
- go build -mod=mod -o . ./...
- go test ./pkg/language
- ./language
cache:
directories:
- $HOME/.cache/go-build # Cache the binaries
- $HOME/gopath/pkg/mod # Cache the Go modules
- language: python
python: "3.12"
before_install: cd python/apps/exchange-rate
install:
- pip3 install tox
script:
- make build
- pip3 install .
- exchange-rate
cache: pip