-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace .travis.yml with ci-build.yml #23
- Loading branch information
1 parent
74c714d
commit 2d424e3
Showing
4 changed files
with
66 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: CI Build | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- version: 8 | ||
experimental: false | ||
- version: 11 | ||
experimental: true | ||
|
||
steps: | ||
- name: Checkout ICAT Client | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: ${{ matrix.version }} | ||
distribution: 'temurin' | ||
|
||
- name: Installation | ||
run: | | ||
sudo pip install wheel ansible pycrypto | ||
sudo add-apt-repository universe | ||
sudo apt-get update | ||
- name: Setup python2 | ||
run: | | ||
sudo apt install python2 | ||
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py | ||
sudo python2 get-pip.py | ||
sudo python2 -m pip install requests requests_toolbelt | ||
- name: Checkout ICAT Ansible | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: icatproject-contrib/icat-ansible | ||
path: icat-ansible | ||
|
||
- name: Setup Ansible | ||
run: | | ||
cd icat-ansible | ||
echo -e "[icat-client-dev-hosts]\nlocalhost ansible_connection=local" > hosts | ||
echo -e "icattravispw" > vault_pass.txt | ||
mv ../vault.yml ./group_vars/all | ||
mv ../icat-client-dev-hosts.yml . | ||
sed -i -e "s/^payara_user: \"glassfish\"/payara_user: \"runner\"/" ./group_vars/all/vars.yml | ||
sed -i -e "s/python-pip/python3-pip/" ./roles/dev-common/tasks/main.yml | ||
ansible-playbook --vault-password-file ./vault_pass.txt --inventory ./hosts ./icat-client-dev-hosts.yml | ||
cd .. | ||
- name: Test with Maven | ||
run: mvn -DserverUrl=https://$(hostname -f):8181 test -B |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters