Skip to content

Commit

Permalink
Merge pull request #6 from RolandHewage/alpha2
Browse files Browse the repository at this point in the history
Migration of Ballerina Azure Service Bus Connector to Swan Lake Alpha 2
  • Loading branch information
kasun-indrasiri authored Feb 25, 2021
2 parents 36e0930 + 28aba0d commit 0e3ceda
Show file tree
Hide file tree
Showing 42 changed files with 823 additions and 3,467 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,42 @@ jobs:
with:
java-version: 11

- name: 'Create settings.xml'
run: |
echo '<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>github</id>
<name>GitHub ballerina-platform Apache Maven Packages</name>
<url>https://maven.pkg.github.com/ballerina-platform/ballerina-lang</url>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>${{ secrets.USERNAME }}</username>
<password>${{ secrets.PERSONAL_TOKEN }}</password>
</server>
</servers>
</settings>' > ~/.m2/settings.xml
- working-directory: ./asb-native
run: mvn clean package

Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,42 @@ jobs:
with:
java-version: 11

- name: 'Create settings.xml'
run: |
echo '<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>github</id>
<name>GitHub ballerina-platform Apache Maven Packages</name>
<url>https://maven.pkg.github.com/ballerina-platform/ballerina-lang</url>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>${{ secrets.USERNAME }}</username>
<password>${{ secrets.PERSONAL_TOKEN }}</password>
</server>
</servers>
</settings>' > ~/.m2/settings.xml
- working-directory: ./asb-native
run: mvn clean package

Expand Down
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
# limitations under the License.

script:
- wget http://dist-dev.ballerina.io/downloads/swan-lake-preview8/ballerina-linux-installer-x64-swan-lake-preview8.deb
- sudo dpkg -i ballerina-linux-installer-x64-swan-lake-preview8.deb
- wget http://dist-dev.ballerina.io/downloads/swan-lake-alpha2/ballerina-linux-installer-x64-swan-lake-alpha2.deb
- sudo dpkg -i ballerina-linux-installer-x64-swan-lake-alpha2.deb
- sudo apt-get install -f
- export JAVA_OPTS="-DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true"
- ballerina --version
- bal --version
- cd asb-native && mvn clean package && cd ..
- ballerina build --skip-tests ./asb-ballerina
- bal build -c --skip-tests ./asb-ballerina
Loading

0 comments on commit 0e3ceda

Please sign in to comment.