forked from MassBank/MassBank-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbump-version.sh
executable file
·30 lines (29 loc) · 1.05 KB
/
bump-version.sh
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
#!/bin/bash
echo $1 > VERSION
if $(echo $1 | grep -q SNAPSHOT); then
echo Set version of development release to $1. This version will validate against the dev branch of MassBank-web.
cat << 'EOF' > .travis.yml
language: java
cache:
directories:
- $HOME/.m2
install:
- git clone --branch dev --depth 1 -q https://github.com/MassBank/MassBank-web.git .scripts/MassBank-web
- mvn -q -f .scripts/MassBank-web/MassBank-Project/MassBank-lib/pom.xml package
script:
- .scripts/MassBank-web/MassBank-Project/MassBank-lib/target/MassBank-lib/MassBank-lib/bin/Validator ./*
EOF
else
echo Set version of release to $1. This version will validate against the main branch of MassBank-web.
cat << 'EOF' > .travis.yml
language: java
cache:
directories:
- $HOME/.m2
install:
- git clone --depth 1 -q https://github.com/MassBank/MassBank-web.git .scripts/MassBank-web
- mvn -q -f .scripts/MassBank-web/MassBank-Project/MassBank-lib/pom.xml package
script:
- .scripts/MassBank-web/MassBank-Project/MassBank-lib/target/MassBank-lib/MassBank-lib/bin/Validator ./*
EOF
fi